• Resolved jana11

    (@jana11)


    I indicated that I wanted featured images to be the source of the thumbnails. My posts do have featured images, however, they are not showing up as thumbnails. What do I need to do differently?
    Thanks!

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

    (@hcabrera)

    Hi there!

    I’m guessing you’re using the shortcode to display your popular posts based on your other topic ??

    To have the shortcode display your thumbnails you must also specify the width and height of the images, otherwise WPP won’t include them (as you already noticed). To do so, use the thumbnail_width and thumbnail_height parameters, for example:

    [wpp range='weekly' thumbnail_width=70 thumbnail_height=70 excerpt_length=50 post_html='<li>{thumbnail} {title} <span class="wpp-excerpt">{excerpt}</span> {stats}']

    Thread Starter jana11

    (@jana11)

    Hi, thanks for your reply. I did try above shortcode, however, neither the excerpt nor the thumbnails showed up. It just simply displayed “{thumbnail}” next to the title of the post but that was it.
    On a different note, I tried adding a right behind {title} in the shortcode, just because my editor kept adding a closing tag for li. Should there be one in the shortcode?

    Thanks again!

    Plugin Author Hector Cabrera

    (@hcabrera)

    I must have been distracted / really tired back when I posted that reply ??

    • There’s no {thumbnail} content tag, it’s {thumb}.
    • I forgot to include the closing LI tag.

    Here’s the revised version of the shortcode:

    [wpp range='weekly' thumbnail_width=70 thumbnail_height=70 excerpt_length=50 post_html='<li>{thumb} {title} {excerpt} {stats}</li>']

    I tested it before writing this and for me both the thumbnail and the excerpt are being displayed.

    Thread Starter jana11

    (@jana11)

    Sorry to keep bothering you. Yes, the thumbnails now show up. However, there still are no excerpts, just the title. The posts themselves are not empty though, they do have content.
    What’s also peculiar is that the About and Contact pages are also listed (….. as popular posts) even though I indicated that I wanted just posts as post type in the settings.
    What might be going on?
    Thank you again! I really appreciate your help.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Since both the excerpts and thumbnails are working for me -as I stated before- then clearly it’s something on your side. You’ll have to share a bit more info so I can help you figure out what’s wrong, like:

    • How are you using the [wpp] shortcode?
    • What did you mean with “even though I indicated that I wanted just posts as post type in the settings”? Which settings?
    • URL of your site?
    • Anything else that might be worth mentioning, please do so.
    • This reply was modified 8 years, 6 months ago by Hector Cabrera. Reason: Fixed typo
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘thumbnails not showing up’ is closed to new replies.