The MU forums have moved to WordPress.org

Exclude *multiple* posts from the index (3 posts)

  1. t3ch33
    Member
    Posted 15 years ago #

    This is listed in the WP forum, because I didn't realize until after I posted it that I wasn't in the MU forums...

    I've already searched the forums and codex, but I've only found the answer for excluding a single post, not multiple posts, from the index page.

    I've tried using the implode method, but I'm getting error messages. Please help. Thanks.

  2. cafespain
    Member
    Posted 15 years ago #

    I'm sorry t3ch33. I think you're going to have to describe that problem a little better.

  3. t3ch33
    Member
    Posted 15 years ago #

    Hi. I'm referring to this code that can be found at http://codex.wordpress.org/Template_Tags/query_posts

    query_posts(array(
    'post__not_in' => array(6,2,8)
    'order'=>'ASC',
    ));

    It's just a way to query posts. I want users to select posts that they don't want displayed on their index pages. That's what the post__not_in part is for.

    I found the code on WP, so I think it was only meant to be hard-coded. But, since I'm using it with MU, I plan to pull these values from the database. How can I put the db values into that array? Does that make sense? If not, just let me know. Thanks.

About this Topic