WordPress.org

Ready to get started?Download WordPress

Forums

Insert Variable into Query Posts for Post ID? (2 posts)

  1. obeattie
    Member
    Posted 7 years ago #

    Hey All,

    I am trying to build a query which results in one post being retrieved from a certain range if IDs. I have tried this:

    <?php query_posts("p='.rand(50, 70).'&showposts=1"); ?>

    But it doesn't seem to work. Could someone possibly point me in the right direction?

    Many Thanks,
    Oliver

  2. obeattie
    Member
    Posted 7 years ago #

    Bump

Topic Closed

This topic has been closed to new replies.

About this Topic