Loop inside sidebar?
-
Is it ok to make a loop inside a sidebar?
Or should it do otherwise?<?php while ( have_posts() ) : the_post(); $post_id = $wp_query->post->ID; $random = get_post_meta($post_id, 'random', true) ?> <?php echo $random; ?> <?php endwhile;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Loop inside sidebar?’ is closed to new replies.