Title: Querying by post type using magic fields plugin
Last modified: August 19, 2016

---

# Querying by post type using magic fields plugin

 *  [boldhand](https://wordpress.org/support/users/boldhand/)
 * (@boldhand)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/querying-by-post-type-using-magic-fields-plugin/)
 * 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)

 *  [hunk](https://wordpress.org/support/users/hunk/)
 * (@hunk)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/querying-by-post-type-using-magic-fields-plugin/#post-1867032)
 * write panel != post type
 * check this [https://groups.google.com/d/topic/magic-fields/gQ-zi630kyk/discussion](https://groups.google.com/d/topic/magic-fields/gQ-zi630kyk/discussion)
 *  Thread Starter [boldhand](https://wordpress.org/support/users/boldhand/)
 * (@boldhand)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/querying-by-post-type-using-magic-fields-plugin/#post-1867058)
 * Thanks a million for your replay, that solved everything.
 * I really need to say, “Magic Fields” is Wonderful:)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Querying by post type using magic fields plugin’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [boldhand](https://wordpress.org/support/users/boldhand/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/querying-by-post-type-using-magic-fields-plugin/#post-1867058)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
