Title: Problem with wp_categories
Last modified: August 30, 2016

---

# Problem with wp_categories

 *  Resolved [2dawgs](https://wordpress.org/support/users/2dawgs/)
 * (@2dawgs)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wp_categories/)
 * First, thank you for developing this plugin. I’ve tried several so far, and couldn’t
   find any that I thought would work for my purposes, until I found this one. Nice
   work!
 * Now to my problem… the front page on my new website is a static page, using a
   custom template that is programmed to display all posts in a specific wordpress
   category, using the following line of code:
    `<?php query_posts('cat=10&posts_per_page
   =-1'); ?>`
 * In the recipepress reloaded settings page, I have wordpress categories enabled
   in the taxonomy, and these categories are appearing in the edit recipe page for
   me to select. My test recipe is appearing as I would expect when I go to the 
   categories page and view the category.
 * However, when I display my static page, the recipe that is in this category does
   not appear there.
 * Any ideas for how I can get my recipes in category 10 to show up on my front 
   page with all my other category 10 posts?
 * Thanks!
 * [https://wordpress.org/plugins/recipepress-reloaded/](https://wordpress.org/plugins/recipepress-reloaded/)

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

 *  Plugin Author [Jan Koester](https://wordpress.org/support/users/dasmaeh/)
 * (@dasmaeh)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wp_categories/#post-6728511)
 * You will have to include the post type ‘rpr_recipe’ into your query. Have a look
   at the WordPressCodex: [https://codex.wordpress.org/Function_Reference/query_posts](https://codex.wordpress.org/Function_Reference/query_posts)
   
   I’d suggest using the array notation of `query_posts` and use a query like `query_posts(
   array( 'category'=>10, 'posts_per_page'=>-1, 'post_type'=>array('post', 'rpr_recipe')));`
 *  Thread Starter [2dawgs](https://wordpress.org/support/users/2dawgs/)
 * (@2dawgs)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wp_categories/#post-6728521)
 * Thank you, I will follow up on this and reply back in the next day or two.
 *  Thread Starter [2dawgs](https://wordpress.org/support/users/2dawgs/)
 * (@2dawgs)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wp_categories/#post-6728529)
 * That was EXACTLY what my template needed. Thank you so much!

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

The topic ‘Problem with wp_categories’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recipepress-reloaded_c4dbbe.svg)
 * [RecipePress Reloaded](https://wordpress.org/plugins/recipepress-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recipepress-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recipepress-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/recipepress-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recipepress-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recipepress-reloaded/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [2dawgs](https://wordpress.org/support/users/2dawgs/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wp_categories/#post-6728529)
 * Status: resolved