[Resolved] Displaying titles of posts from category in a sidebar
I realise there are plug-ins for this kinda feature (‘asides?’), but I am trying to learn more about the code behind WP and have hit a block here!
I have the regular loop running on a page (main content area), but really need to be able to display the (linked) titles of the latest 3 posts made in a specific category in the sidebar in various pages/categories on the site.
I have tried a-lot of different ways, but I am no PHP/WP expert and have not been able to achieve this… whenever I paste code into my sidebar file it seems to stop the ‘main page’ content appearing – this is because I need to run another loop Im guessing, and it is screwing up the main one… I just can’t get it to work!
Please help me out guys (and gals!), it seems such a simple thing to do, but I just can’t work it out!
- The topic ‘[Resolved] Displaying titles of posts from category in a sidebar’ is closed to new replies.