How DO I Show Posts in Current Category Excluding Selected Posts? (3 posts)

  1. chiefmonkey
    Posted 6 years 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.



  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Not exactly but you could use get_posts to create the list that you're after.

  3. anupofuniverse
    Posted 6 years ago #

    you can use the plugin "Posts of current category" too

Topic Closed

This topic has been closed to new replies.

About this Topic