Help Wanted with Code Snippet
-
As referenced here, I’m looking for a way to put some post-to-post navigation at the top of my weblog pages. (I’m set to 1 posts paged.)
Here is the code for my index.php file that I need help with:
If current page is index.php and nothing else after that address, then echo
<?php previous_post('%', '<img src="https://www.bbiverson.com/images/buttons/previous.jpg" alt="Read Previous Entry" align="middle" />Previous Entry', 'no', 'no', 1, '') ?>
else echo
<?php previous_post('%', '<img src="https://www.bbiverson.com/images/buttons/previous.jpg" alt="Read Previous Entry" align="middle" />Previous Entry', 'no', 'no', 1, '') ?>
" title="Latest Entry">Latest Entry
<?php next_post('%','Next Entry<img src="https://www.bbiverson.com/images/buttons/next.jpg" alt="Read Next Entry" align="middle" />','no','no',1,''); ?>
<?php } ?>
Can someone help me with the parts that are in bold?
- The topic ‘Help Wanted with Code Snippet’ is closed to new replies.