WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Use query_posts to generate a specified posts list? (5 posts)

  1. Tunghsiao Liu
    Member
    Posted 3 years ago #

    Hi all, for some reason, I want to use query_posts to get a posts list for specified posts, they filed under different categories, different tags and authors, I tried p= parameter like p=1,12,34,90,120 but it doesn't work, anybody know how to do it?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

  3. Tunghsiao Liu
    Member
    Posted 3 years ago #

    yes, I checked this document and my code is like:

    <?php query_posts('p=1670,147,584,1516,1590,433,363,46');
    if (have_posts()) : while (have_posts()) : the_post(); ?>

    but it doesn't work. I said they filed under different categories, different tags and authors, I cannot use parameter such as cat= to get the exact posts I want. so any good idea?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Re-read this section.

  5. Tunghsiao Liu
    Member
    Posted 3 years ago #

    Ha, I got it, sorry for my carelessness.

Topic Closed

This topic has been closed to new replies.

About this Topic