Title: Get custom post query problem
Last modified: August 31, 2016

---

# Get custom post query problem

 *  [deepakbhatt619](https://wordpress.org/support/users/deepakbhatt619/)
 * (@deepakbhatt619)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/get-custom-post-query-problem/)
 * hi i made a custom post type products.. now i want to show all of the custom 
   posts in a single page..want to link all custom posts in a page
 * i made a product-template.php template file and tried this query
 * <?php
    $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 10 ); $loop
   = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title();
   echo ‘<div class=”entry-content”>’; the_content(); echo ‘</div>’; endwhile; ?
   >
 * aftr using this query i’m getting the posts bt only text contents not all post
   layout including featured image and layout
    please help me out i’m new

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/get-custom-post-query-problem/#post-7187489)
 * this part `the_content();` only gives you the text content;
 * for featured images and the layout, you will possibly need to copy more of the
   coding from your theme’s index template into your custom code.
 * what theme are you using?
 *  Thread Starter [deepakbhatt619](https://wordpress.org/support/users/deepakbhatt619/)
 * (@deepakbhatt619)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/get-custom-post-query-problem/#post-7187507)
 * i’m using a themeum product prolog theme
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/get-custom-post-query-problem/#post-7187552)
 * your currently used theme does not seem to be one of the supported themes from
   [https://wordpress.org/themes/](https://wordpress.org/themes/)
    – you might need
   to contact the theme’s developer for help with your question.

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

The topic ‘Get custom post query problem’ is closed to new replies.

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/get-custom-post-query-problem/#post-7187552)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
