Title: can i&#8230; PHP question
Last modified: August 18, 2016

---

# can i… PHP question

 *  [ayteale](https://wordpress.org/support/users/ayteale/)
 * (@ayteale)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/can-i-php-question/)
 * if you look at my blog
    [http://ryanflynnphoto.com/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!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/can-i-php-question/#post-49387)
 * 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.
 *  Thread Starter [ayteale](https://wordpress.org/support/users/ayteale/)
 * (@ayteale)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/can-i-php-question/#post-49390)
 * I am using posts_nav_link() , any tips on how to edit it?
 *  Thread Starter [ayteale](https://wordpress.org/support/users/ayteale/)
 * (@ayteale)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/can-i-php-question/#post-49654)
 * Anyone, anyone….Bueller, Bueller? Seriously, Im an idiot, can someone break it
   down for me?
 *  Thread Starter [ayteale](https://wordpress.org/support/users/ayteale/)
 * (@ayteale)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/can-i-php-question/#post-49693)
 * 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???
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/can-i-php-question/#post-49709)
 * 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.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘can i… PHP question’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [Beel](https://wordpress.org/support/users/beel/)
 * Last activity: [22 years, 1 month ago](https://wordpress.org/support/topic/can-i-php-question/#post-49709)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
