I was wondering if anyone knew how to show the recent posts that ONLY belongs to a category.
So, let's say for instance I had a post about "Home Loans" And I posted it into the category of "Loans", when the post I made about "Home Loans" is clicked on, in the sidebar I wanted to have all the posts (or a fixed number of them) to only show up that were previously posted in the category of "Loans".
At present if I use this code (* are really <>):
[?php get_archives('postbypost', 50); ?]
in my sidebar.php
Then I get all the posts whether or not they were posted in say categories of "Loans" "Insurance" "Lawyers" etc. When ideally I only wanted to have the posts that show up in the category the "Home Loans" post was posted in.
I've spent the last few hours trying to look for the php function that can allow this but I can't seem to find any reference to how to do this.
Can anyone help?
Thanks in advance.