![]() |
[SOLVED] Recent posts of same category, on single post pages
Hello again! When the user is reading a post (on a sigle post page) which belongs to one category, is it possible that the next/prev page navigation shows only posts inside the same category? Or, if not possible, would it be possible to have in the sidebar a list of all the other posts on that category?
Because, currently it shows the newer/older post of all categories making it difficult to navigate inside one category without having to go back again to the category multipost page. I hope the question make sense. Again, our blog is: www.geoparadise.org/blog Thanks in advance! NOA |
You can put this into a PHP code widget http://wordpress.org/extend/plugins/php-code-widget/
PHP Code:
|
Hello Flynn! Thanks for your answer.
I did it, but I canīt see any change at all!! What was supposed to be doing? Noa |
It should have listed the recent posts of the given category in the sidebar, when on a category page. Did you install the plugin? After that you should put one instance of the PHP code widget into a sidebar, and into the widget put the above code
|
Ok! Sorry, I was trying with the widget Php Code that comes with the theme, but now Iīve installed the plugin from your link and done everything again, and it certainly shows a list with the lasts posts of the category in the sidebar, like you said, but it does it in the Category MULTIPOST Page, which doesnīt give any extra functionality, as long as they are also listed in the center/main space.
What we would need and appreciate is to have that list/menu of the lasts entries on that category in the sidebar, but on the SINGLE Post Pages. (or otherwise, change the next/prev nav menu to show only post inside the category). I hope is possible... Thanks again! NOA |
Use this instead:
PHP Code:
|
I found a really easy way to do this: http://wordpress.org/extend/plugins/category-posts/
It's a widget that lets you put a certain number of posts from a category in the sidebar, showing up just in that category. |
Hey Flynn,
Really like the code you got, but I was looking to take it one step further if you could assist. For each tagged category I want to create a list of their recent posts. I've been messing around with and haven't figured it our yet, but I'm thinking it would be something like: for each cat do this end foreach Looking forward to hearing your thoughts. Thanks |
Hey,
I was able to get it to work, here's the code in case anyone else has the same need: Code:
<?php |
hi, i just found this forum via google, and it looks like you guys are trying to do the same thing i am.
i have a sidebar that i call on my category archive pages, and single post pages, that pulls in all the post titles from the 20 most recent posts. it has a serious problem though. for some reason, when i include it, all post links, and all links within the sidebar link to the most recent post only, even though the urls are correct for each specific link. perhaps someone know what i'm doing wrong. here's the code for sidebarright.php PHP Code:
thanks! |
etripp, this forum is for the Atahualpa theme and you are not using it. If you decide to switch, feel free to ask questions here.
|
All times are GMT -6. The time now is 11:09 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.