'_wp_page_template', 'meta_value' => 'page-recipelist.php' )); if (!empty($_GET['recipe_id'])) { $recipe_id = $_GET['recipe_id']; $post_recipe = get_post($recipe_id); $meta_value = get_post_meta($recipe_id, '_recipe_page_options', true); // Premision for recipe if ($post_recipe->post_author != get_current_user_id()) { get_header(); get_template_part('permission_denied'); get_footer(); exit; } } else { $recipe_id = false; } ?>