add_image_size('food_home_banner', 960, 400, true);
add_image_size('food_home_panels', 310, 210, true);
add_image_size('food_home_small_panel', 310, 149, true);
add_image_size('recipe-full', 330, 500, true);
add_image_size('recipe-thumbnail', 110, 110, true);
// Youtube Link
function youtubeID($idIn) {
if(strpos($idIn,'v=')!=false) {
$idIn = substr($idIn,strpos($idIn,'v=')+2);
}
return $idIn;
}
function youtubeLink($linkIn) {
return 'http://www.youtube.com/embed/'.youtubeID($linkIn);
}
add_action('admin_menu', 'my_remove_menu_pages_lad');
function my_remove_menu_pages_lad() {
remove_menu_page('edit.php?post_type=job');
remove_menu_page('edit.php?post_type=store');
}
// Recipes
add_action( 'init', 'register_cpt_recipe' );
function register_cpt_recipe() {
$labels = array(
'name' => _x( 'Recipes', 'recipes'),
'singular_name' => _x( 'Recipe', 'recipes' ),
'add_new' => _x( 'Add New', 'recipes' ),
'add_new_item' => _x( 'Add New Recipe', 'recipes' ),
'edit_item' => _x( 'Edit Recipe', 'recipes' ),
'new_item' => _x( 'New Recipe', 'recipes' ),
'view_item' => _x( 'View Recipe', 'recipes' ),
'search_items' => _x( 'Search Recipes', 'recipes' ),
'not_found' => _x( 'No recipe found', 'recipes' ),
'not_found_in_trash' => _x( 'No recipe found in Trash', 'recipes' ),
'parent_item_colon' => _x( 'Parent recipe:', 'recipes' ),
'menu_name' => _x( 'Recipes', 'recipes' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'supports' => array('title','thumbnail'),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 11,
'show_in_nav_menus' => false,
'publicly_queryable' => true,
'exclude_from_search' => false,
'has_archive' => true,
'query_var' => true,
'can_export' => true,
'rewrite' => true,
'capability_type' => 'post'
);
register_post_type( 'recipes', $args );
}
?>
News | Lakes and Dales
/*
*/ ?>
Skip to content
Archive for the ‘News’ Category
Lakes and Dales Co-op can confirm opening times of…
Read more
An environmental and wellbeing initiative that will benefit communities across…
Read more
Introducing the charities and good cause groups shortlisted in the…
Read more