WP Recipe Maker – Get ID and recipe data

// Get the recipes inside this post. global $post; $recipes = WPRM_Recipe_Manager::get_recipe_ids_from_content( $post->post_content ); // Access the first recipe, if there is one. if ( isset( $recipes[0] ) ) { $recipe_id = $recipes[0]; $recipe = WPRM_Recipe_Manager::get_recipe( $recipe_id ); // Output the recipe name. echo $recipe->name(); }
Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk