Featured image doesn't show up with the excerpt with the new recipe plug in
-
Hi,
I am trying new WP Ultimate recipe plugin for posting recipes. The new recipe posts does not show up under ‘post’ in my dashboard but shows up as ‘recipe’ and on the website the recipe post is not displaying the featured image with excerpt. The plugin author says that it may be due to some compatibility issue with the theme and was able to work around by making changes in the theme’s (free downloadable file that I sent to him) functions.php file with following code-add_action( ‘generate_after_entry_header’, ‘generate_recipe_image’ );
function generate_recipe_image()
{if ( !has_post_thumbnail() )
return;if ( ‘recipe’ == get_post_type() && !is_single() ) {
?>
<div class=”post-image”>
” title=”<?php the_title(); ?>”><?php the_post_thumbnail(); ?>
</div>
<?php
}
}If I understand it correct, making changes to the core files will be lost during updates if it is not a child them. I do not use a child theme and wonder if there is a simpler way to do it. Meaning- to get the featured image show up with recipe post excerpt. It’ll really help.
Thanks!
- The topic ‘Featured image doesn't show up with the excerpt with the new recipe plug in’ is closed to new replies.