• I need to set another loop on a page, I’m using magic fields plugin, where “news” is the name of the Custom Write Panel.
    for some reason its not displaying the posts.

    <?php $my_query = new WP_Query(‘post_type=news’);

    while ($my_query->have_posts()) : $my_query->the_post();

    $do_not_duplicate = $post->ID; ?>

    <?php the_title(); ?>
    <?php the_content(); ?>

    <?php endwhile; ?>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Querying by post type using magic fields plugin’ is closed to new replies.