• Resolved mrrobbo

    (@mrrobbo)


    Have just setup this plugin and it looks great, however, Im unable to get the feature image from the post to appear beside the popular posts title/link

    We are using a custom post type with the following code

    [wpp range=”last24hours” limit=6 stats_views=1 order_by=”views” post_type=”sfwd-courses” wpp cat=’-242′]

    My only thought is that the feature image is actually a custom field, however, not sure what that would be

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @mrrobbo,

    To have the [wpp] shortcode display the thumbnail you also need to pass it its dimensions using the parameters thumbnail_width and thumbnail_height. For example:

    [wpp range="last24hours" limit=6 stats_views=1 order_by="views" thumbnail_width=100 thumbnail_height=56 post_type="sfwd-courses" wpp cat="-242"]

    If you’re using a custom field to set your posts’ featured images, you’ll probably want to have WPP use that as well:

    1. Go to Settings > WordPress Popular Posts > Tools.
    2. Under Thumbnails, set Pick image from to Custom field and fill the Custom field name with the actual name of your custom field (if you don’t know its name, check with your developer).
    3. Hit the Apply button to save changes.
Viewing 1 replies (of 1 total)

The topic ‘Feature Image’ is closed to new replies.