using a custom query in the loop
-
I’d use a custom query to retrieve some specific article in the loop.
The custom query is like this
<?php $posts = $wpdb->get_results foreach ($posts as $post) : setup_postdata($post);the loop is the usual
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
The topic ‘using a custom query in the loop’ is closed to new replies.