• Resolved 2dawgs

    (@2dawgs)


    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://www.ads-software.com/plugins/recipepress-reloaded/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jan Koester

    (@dasmaeh)

    You will have to include the post type ‘rpr_recipe’ into your query. Have a look at the WordPressCodex: https://codex.www.ads-software.com/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

    (@2dawgs)

    Thank you, I will follow up on this and reply back in the next day or two.

    Thread Starter 2dawgs

    (@2dawgs)

    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.