Title: [Plugin: Category Shortcode] expects get_thumbnail
Last modified: August 19, 2016

---

# [Plugin: Category Shortcode] expects get_thumbnail

 *  [toyNN](https://wordpress.org/support/users/toynn/)
 * (@toynn)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-category-shortcode-expects-get_thumbnail/)
 * Probably not just me but this plugin when parsing the posts in the Category expects
   that the theme has support for “get_the_post_thumbnail()” you aren’t checking
   for this and if not then it breaks the code and nothing gets returned. Several
   lines in your loop to process the posts in the category are like this:
 * `$rdscf_output.='<div class=csc_post_thumbnail>' . get_the_post_thumbnail($rdcsc_posts-
   >ID, 'thumbnail') . '</div>';`
 * For others who may not have this newer functionality you get get it by putting
   this code within your theme’s function.php:
    `<?php add_theme_support( 'post-
   thumbnails' ); ?>`
 * [http://wordpress.org/extend/plugins/category-shortcode-w-generator/](http://wordpress.org/extend/plugins/category-shortcode-w-generator/)

Viewing 1 replies (of 1 total)

 *  [cjvannette](https://wordpress.org/support/users/cjvannette/)
 * (@cjvannette)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-category-shortcode-expects-get_thumbnail/#post-1545539)
 * Thanks for the tip!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Category Shortcode] expects get_thumbnail’ is closed to new 
replies.

 * 1 reply
 * 2 participants
 * Last reply from: [cjvannette](https://wordpress.org/support/users/cjvannette/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-category-shortcode-expects-get_thumbnail/#post-1545539)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
