Support » Plugins and Hacks » How DO I Show Posts in Current Category Excluding Selected Posts?
7 years, 2 months ago
Is there a Posts alternative to the wp_list_pages function?
I have looked every where for the answer and keep running into the same answers that all revert to a Pages solution.
In the Sidebar.php I would like to List all of the Posts from the Current Category whilst Excluding specific posts I choose.
Pages is simple: <?php wp_list_pages(‘title_li=&exclude=115,38’); ?>
Is there a similar line of code for Posts?
Kind regards in advance for any light anyone can shine on this.
Not exactly but you could use get_posts to create the list that you’re after.
you can use the plugin “Posts of current category” too