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.
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!
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.
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.
This is what I have been looking for. Has there been any recent development on the code for WP 2.8? I am about to try this on my blog and see if it still works. Thanks for sharing.
Im using 2.8.5, and it works fine.
I just upgraded to Wordpress 2.9 and I am happy to see this plugin still works great. I am looking over the code and I am hoping the new post thumbnail function with WP2.9 might somehow be incorporated into this plugin. Whereas the next prev links also shows post thumbnails.