Need code tweak on previous_post_link and next_post_link, PLEASE :)
-
I’ve read the documentation on these tags, and while what the documentation says is CLOSE to what I want, I can’t seem to be able to tweak to exactly what I need…
I need to re-write the following line of code:
<p class="previous">Read More Stories: <br /><?php previous_post_link('← %link') ?> | <?php next_post_link('%link →') ?></p>
so that the previous and next post links will ONLY display for the posts in THIS category. I tried to add ‘TRUE’ after ‘%link’ but then it just displays the word TRUE. The example in the documentation makes it seem like I can either display the TITLE of the post, OR, use custom text declared in the string and include or exclude by category, but not do both. I’m sure it has to be possible, I’m just not sure of the correct syntax.
Come on, pay it forward, please help me out! ??
- The topic ‘Need code tweak on previous_post_link and next_post_link, PLEASE :)’ is closed to new replies.