WordPress.org

Ready to get started?Download WordPress

Forums

can i... PHP question (6 posts)

  1. ayteale
    Member
    Posted 10 years ago #

    if you look at my blog
    http://ryanflynnphoto.com/blog
    you will see the h2 says "archives/next" and if you click next, then "previous" comes up in between them.
    So my question is : Can I have the "previous" show up on the index too but just be inactive untill the viewer is on the second+ photo?
    Thanks!

  2. carthik
    Member
    Posted 10 years ago #

    If you are using posts_nav_link(); to display those links, then you have to edit that function to display the "previous" text even when there is no previous.

  3. ayteale
    Member
    Posted 10 years ago #

    I am using posts_nav_link() , any tips on how to edit it?

  4. ayteale
    Member
    Posted 10 years ago #

    Anyone, anyone....Bueller, Bueller? Seriously, Im an idiot, can someone break it down for me?

  5. ayteale
    Member
    Posted 10 years ago #

    Sorry Beel, I changed next to previous and vice versa.....But basically I want all three to be visible at all times...And I am not following your suggestion???

  6. Beel
    Member
    Posted 10 years ago #

    Yeah, just follow what I said for both and echo what you want. Essentially the function only echoes a link if there is another post either "next" or "previous" to the current post. You have to put an else statement to print nonlink text for "next" and "previous" when there really isn't one.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.