First / previous / next / latest in category links?
-
Hi,
I’m currently trying to add a category to my site which will contain only webcomic drawings. I can get the theme to add a chunk of code under the posts in just that category, but the problem is I can’t seem to find out how to do the following:
1) Display a link to the first post in the current category,
2) Display a link to the previous post in the current category,
3) Display a link to the next post in the current category,
4) Display a link to the latest post in the current category.Something like the following:
<div class='comicbuttons'> <span class='cbtn first'>?FIRST</span> <span class='cbtn back'>< BACK</span> <span class='cbtn next'>NEXT ></span> <span class='cbtn latest'>LATEST ?</span> </div>
[Moderator Note: Please post code & markup between backticks (not single quotes) or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
… But obviously with the text linking to the first, previous, next and latest posts in the category.
I’ve tried searching the support pages and have found a few seperate chunks of PHP which all seem to interfere with each other, and unfortunately I’m more experienced with HTML and CSS.
I’ve also played around with ComicPress a bit, but didn’t really get on with it as a theme or as a variant of wordpress, so just using a category which automatically places that block after it’s content would be perfect for my needs really.
- The topic ‘First / previous / next / latest in category links?’ is closed to new replies.