Recipes and their Parent Post, Page or Custom Post Type

There are several ways you can display recipes on your website. One important thing to remember is that rby defaultecipes do not exist on their own. They are like regular text or an image: you have to add the recipe to a post/page/custom post type before it actually shows up on your site. The thing that contains the recipe is called the parent post and can be seen on the WP Recipe Maker > Manage page as well.

Default use case: adding recipes to regular posts

Most of our users are food bloggers where the recipes are the main content of the site. For those, it usually makes sense to create a regular post (through the Posts > Add New page) that you then add a WP Recipe Maker recipe to. That post becomes the parent post of the recipe when you save the post.

Any theme is capable of displaying regular posts, so this is also the easiest way to display your recipes. There is no difference between a post that contains a recipe or not, so they will get displayed on your homepage/blog page just like before.

What to do when the parent post link is gone?

You're not seeing a parent post on the WP Recipe Maker > Manage page but the recipe has actually been added to a post? Try going into what should be the parent post and saving it. It will then look for any recipes inside and associate itself as being the parent.

You can also try using the "Find Parent" button on the WP Recipe Maker > Tools page.

Not having recipe posts between other posts

On some sites you might not want your recipe posts to display in between regular posts. An easy solution for that could be to assign a specific "Recipes" category to the posts that do have a recipe in them.

Then a plugin like Ultimate Category Excluder could be used to exclude the posts with that specific category from the homepage, for example.

Adding recipes to a custom post type

There is no reason that recipes have to get added to a regular post either. Adding them to a completely separate custom post type is possible as well. That way, you have full control over where those recipes get displayed.

A plugin like Custom Post Type UI can get used to create a "Recipes" custom post type, for example. Just like with regular posts you'd then add a WP Recipe Maker recipe to these.

But aren't recipes already a custom post type?

Yes, technically our recipes are a wprm_recipe post type as well. This is a non-public post type, however, so it is not accessible directly. The recipes do not have their own URL.

The plugin works like that to be as flexible as possible. Because of this system you can choose where to add recipes to (regular posts or a custom post type) and the same recipe can be added to multiple posts as well, just to name a few reasons.

Should you have a special use case, you can make the recipe post type public through the advanced settings as well.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.