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 the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

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

Let's Talk