Next Previous Posts in Same Category
My nearly-sprung theme used Scriptygoddess’ Next Previous Posts in Same Category wordpress plugin. However when I upgraded my blog to wordpress 2.6.1 it broke.
*sigh*
I found out that there wasn’t a newer version, so after 3 days of re-learning the wordpress plugin system, SQL, and scouring the web, I rewrote the plugin to work with wordpress 2.6.1.
So so without further adu I present to you:
Installation Instructions:
-Copy the text file into your wordpress ‘wp-content\plugins’ directory.
-Rename it to ‘nextPreviousCat.php’.
-Activate it in your plugin setup menu on your admin dashboard.



Becky said,
October 2, 2008 @ 3:55 am
This is SO cose to what I’m looking for, but no cigar.
It’s actually just the display of the links that I prefer to be different. I’d like it to be like so:
Category A
- next
- prev
Category B
- next
- prev
and so forth. I think I can use your queries as a starting point and just wrap it all in a foreach loop, but any thoughts you have would be much appreciated!
Ricky said,
October 6, 2008 @ 8:20 am
Heh, thats what normally happens to me. I get something thats nearly there, then I have to modify it to get it to work. Most of the owrk is in the overly complex SQL statement for getting the previous and next posts in a catagory. So hopefully your work shouldn’t be too hard. If you manage to get a plugin written, give me a link, and I’ll link to it from here.
Becky said,
October 7, 2008 @ 8:51 am
Hey Ricky! I think I’ve got it all sorted out. Here’s the link: http://gobecky.net/2008/10/06/prev-next-by-cat/
It’s not just my first plugin, but my first time writing a function (pretty pathetic considering I’ve been building sites with PHP and MySQL for 5 or 6 years!) - I’d love to hear any feedback you might have.