Title: Using thumbnails for popular post plugin without custom fields(2.9)
Last modified: August 19, 2016

---

# Using thumbnails for popular post plugin without custom fields(2.9)

 *  [jamin84](https://wordpress.org/support/users/jamin84/)
 * (@jamin84)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/using-thumbnails-for-popular-post-plugin-without-custom-fields29/)
 * 2.9 introduced a post thumbnail option which, when implemented with the following
   plugins, can eliminate the need to use custom fields. Here is my method, open
   to suggestions!
 * 1. Go to [Kremalicious](http://www.kremalicious.com/2009/12/wordpress-post-thumbnails/)
   and follow his instructions on how to activate the plugin.
 * 2. Create a new template output tag / function (called mine postthumb) in the
   output_tags.php file, from the [Post Plugin Library](http://rmarsh.com/plugins/post-plugin-library/),
   which is required for the [Popular posts plugin](http://rmarsh.com/plugins/popular-posts-plugin/)
   I’m using.
 * 3. My custom output tag / function looks like this
 *     ```
       function otf_postthumb ($option_key, $result, $ext) {
       	return get_the_post_thumbnail($result->ID, 'thumbnail' );
       }
       ```
   
 * 4. Under Popular Posts settings->output, add your new custom tag. Mine looks 
   like this `<li><a href="{url}">{postthumb} {title}</a></li>`
 * I’m still having issues with 2.9’s cropping accuracy for my thumbs (they are 
   1 pixel off) but this is a great way to avoid custom fields for displaying thumbs
   for popular posts

The topic ‘Using thumbnails for popular post plugin without custom fields(2.9)’ 
is closed to new replies.

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * 0 replies
 * 1 participant
 * Last reply from: [jamin84](https://wordpress.org/support/users/jamin84/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/using-thumbnails-for-popular-post-plugin-without-custom-fields29/)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
