List of recent posts (Plugin: Customizable Post Listings)
-
I’m trying to get a list of recent posts in each category like your often see done on newspapers, instead of the more ‘blog looking’ list of recent posts. I’m trying to achieve this task with Customizable Post Listings plugin.
When I put this code into the theme
<?php c2c_get_recent_posts(5, "<li>%post_URL%", "4"); ?>
I expected to get the 5 most recent posts for category #4, however I get just the 5 most recent posts regardless of category. Since I have one of these for each category, I just get 5 blocks of the latest posts.
I’m fairly certain I’m using the right syntax because I’ve gotten it to work with this plugin on previous projects.
I’m wondering if it has something to do with the loop. On this project I’m leaving the loop in place because I also want to have a preview of the most recent post displayed at the top first, where as in the last project I completely took the loop out of index.php.
- The topic ‘List of recent posts (Plugin: Customizable Post Listings)’ is closed to new replies.