Title: salgua's Replies | WordPress.org

---

# salgua

  [  ](https://wordpress.org/support/users/salgua/)

 *   [Profile](https://wordpress.org/support/users/salgua/)
 *   [Topics Started](https://wordpress.org/support/users/salgua/topics/)
 *   [Replies Created](https://wordpress.org/support/users/salgua/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/salgua/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/salgua/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/salgua/engagements/)
 *   [Favorites](https://wordpress.org/support/users/salgua/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] archive-custom_type.php doesn't work](https://wordpress.org/support/topic/archive-custom_typephp-doesnt-work/)
 *  Thread Starter [salgua](https://wordpress.org/support/users/salgua/)
 * (@salgua)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/archive-custom_typephp-doesnt-work/#post-4701684)
 * Hi Michael, I found
    [this](http://wordpress.org/support/topic/show-categories-filter-on-custom-post-type-list?replies=15)
   What do you think? Maybe is better to use custom taxonomies?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] archive-custom_type.php doesn't work](https://wordpress.org/support/topic/archive-custom_typephp-doesnt-work/)
 *  Thread Starter [salgua](https://wordpress.org/support/users/salgua/)
 * (@salgua)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/archive-custom_typephp-doesnt-work/#post-4701681)
 * I have a simple sidebar with the list of products categories, when I click on
   the category link I want to view only the products of this category, in the same
   way that it works for default posts. If I use $the_query->the_post() in the if
   statement it fetch all product posts without filter the current category
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] archive-custom_type.php doesn't work](https://wordpress.org/support/topic/archive-custom_typephp-doesnt-work/)
 *  Thread Starter [salgua](https://wordpress.org/support/users/salgua/)
 * (@salgua)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/archive-custom_typephp-doesnt-work/#post-4701669)
 * Thank you for your fast answer. I didn’t insert any link because I’m working 
   on a local site. As you suggested I think that the problem is that I’m visiting
   the wrong url. In fact I want to filter my product custom post by category, but
   clicking on a category link the url is [http://mysite/category/mycategory](http://mysite/category/mycategory)
   that’s the standard post category url. I don’t have any category.php file and
   wordpress use the archive.php as fallback. My question is: how can I use standard
   categories to filter custom posts? I tried also using WP_Query in a category.
   php page, in this way:
 *     ```
       $args = array(
       		'post_type' => 'product'
       	);
   
       	$the_query = new WP_Query( $args );
       ```
   
 * and
    `<?php if ( have_posts() ) : while ( $the_query->have_posts() ) : $the_query-
   >the_post(); ?>` but the returned loop is always empty.

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