• I am running this query
    ` <?php $featured = new WP_query(“cat=11&showposts=1&orderby=rand”); ?> ‘
    ..and somehow it fetches only the first post (in that category).
    Ditto happens with tags as well

    Any idea how to resolve this?
    PS: I am using wp2.6.5

Viewing 2 replies - 1 through 2 (of 2 total)
  • Already answered here.

    Thread Starter ash

    (@sinha)

    This didn’t work:
    Sorry for asking again – but I stil don’t quite get it.
    Pls help me out

    <?php $featured = new WP_query("cat=2&showposts=1&orderby=rand"); ?>

    What’s wrong with this query?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Random posts from selected category/tag’ is closed to new replies.