• Resolved lilqhgal

    (@lilqhgal)


    I’m trying to add a box on my site that displays content from ONE randomly grabbed sticky post. My code doesn’t seem to work. I have:

    <?php $args = array(
    			'posts_per_page' => 1,
    			'post__in'  => get_option('sticky_posts'),
    			'caller_get_posts' => 1,
    			'orderby' => rand
    		);
    		query_posts($args);
    		?>

    But that doesn’t seem to display the posts randomly. If I comment out the ‘caller_get_posts’ section, then all my stickies show up. Any help is appreciated!!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘random sticky?’ is closed to new replies.