Howdy good folks, hope I am posting this is the right section. What I would like to do is have a dynamic link to the first post in a category -- so when you click into say the 'Site News' category where the links for 'Next page' and 'Previous page' are there would also be a link for 'First page'. Is this possible with either a bit of code or a plugin? I've searched and searched but not been able to come up with any thing myself. Any help would be appreciated (using the latest version of WP if that is relevant)
WP-PageNavi and Pagebar are popular navigation plugins. I don't know of any tags for first and last posts, so you'd have to code something with WP_Query
You can easily add the link to the blogs main page in the single.php file of the theme you are using. The code to edit should look like this: <?php previous_post_link('« %link') ?> <?php next_post_link('%link »') ?> PHP: Then just add the link to the blogs home page with either regular HTML or php between the previous post and next post code. something like this: <?php previous_post_link('« %link') ?> <a href="<?php echo get_option('home'); ?>/">Return to Homepage;</a> <?php next_post_link('%link »') ?> PHP:
Thanks for the advice, I shall take a look at the links provided and see if I can get any to do what I want. I think I might have said it backwards or not fully explained though, because by 'first page' I actually mean the oldest page. So the page containing the very first post I made in that category.