[wp-hackers] Help Wanted with Code Snippet
BB
bb at bbiverson.com
Tue Aug 3 02:25:56 UTC 2004
As referenced here <http://wordpress.org/support/3/9972> , I'm looking for a
way to put some post-to-post navigation at the top of my WP 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="http://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="http://www.bbiverson.com/images/buttons/previous.jpg" alt="Read
Previous Entry" align="middle" />Previous Entry', 'no', 'no', 1, '') ?>
<a href="<?php echo $siteurl; ?>" title="Latest Entry">Latest Entry</a>
<?php next_post('%','Next Entry<img
src="http://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?
BB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/hackers_wordpress.org/attachments/20040803/be55c4d4/attachment.htm
More information about the hackers
mailing list