Title: Custom post type list without a custom loop
Last modified: August 19, 2016

---

# Custom post type list without a custom loop

 *  [caugb](https://wordpress.org/support/users/caugb/)
 * (@caugb)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-post-type-list-without-a-custom-loop/)
 * Hi
    I’m working with a post type ‘product’, created in this way:
 *     ```
       $args = array(
           [...]
           'rewrite' => array('slug' => 'store', 'with_front' => false),
           [...]
         );
       ```
   
 * in my local system I get the products list accessing ´http://mysite.com/store/
   ´ without any extra code, the products list happens naturally… but when I try
   it online, I get a 404 error (page not found).
 * Searching this forum, I see several items showing custom loops to display custom
   posts. Is it necessary? So, why it works in my local server?
 * The rewrite rules are the same in both installations (after flushing), but $wp_query
   shows that in local machine `$wp_query->query_vars['post_type'] = 'product'` 
   while in online version, $wp_query points to a unknown ‘page’ – with the same
   
   exactly rewrite rules!!!
 * PS. there is not a page or post with the slug ‘store’ .
 * Any help would be appreciated

The topic ‘Custom post type list without a custom loop’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [caugb](https://wordpress.org/support/users/caugb/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/custom-post-type-list-without-a-custom-loop/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
