Insert Variable into Query Posts for Post ID?
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?
- The topic ‘Insert Variable into Query Posts for Post ID?’ is closed to new replies.