• The testimonials on this site are posts. When the user clicks “read more” a page listing (with excerpts)all of the same posts within the same category should appear.

    Why am I getting this error?
    Thanks

    http://www.abebuzz.com
    http://www.abebuzz.com/?page_id=197

    Fatal error: Call to undefined function get_the_post_thumbnail() in /home/abebuzz1/public_html/wp-content/plugins/category-shortcode-w-generator/category_shortcode.php on line 157

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    I have this issue too

    Fatal error: Call to undefined function get_the_post_thumbnail() in /home/xxxxxxx/public_html/blog/wp-content/plugins/category-shortcode-w-generator/category_shortcode.php on line 108

    does anyone know how to fix ?
    Thanks

    I added the following code to lines 108 and 157

    if(function_exists('has_post_thumbnail') && has_post_thumbnail($rdcsc_posts->ID))
    	$rdscf_output.='<div class=csc_post_thumbnail>' . get_the_post_thumbnail($rdcsc_posts->ID, 'thumbnail') . '</div>';

    This seems to get around the problem by only displaying thumbnails if the theme supports it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Category Shorcode Plugin’ is closed to new replies.