Title: Category Shorcode Plugin
Last modified: August 19, 2016

---

# Category Shorcode Plugin

 *  [kloy](https://wordpress.org/support/users/kloy/)
 * (@kloy)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/category-shorcode-plugin/)
 * 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)
    [http://www.abebuzz.com/?page_id=197](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)

 *  [ILP](https://wordpress.org/support/users/ilp/)
 * (@ilp)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/category-shorcode-plugin/#post-1713712)
 * 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
 *  [BumbleSkippy](https://wordpress.org/support/users/bumbleskippy/)
 * (@bumbleskippy)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/category-shorcode-plugin/#post-1713790)
 * 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.

 * 2 replies
 * 3 participants
 * Last reply from: [BumbleSkippy](https://wordpress.org/support/users/bumbleskippy/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/category-shorcode-plugin/#post-1713790)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
