• Resolved ilabs

    (@inspirelabs)


    Hi,

    I am having trouble displaying a thumbnail in the list of popular posts.
    Plug version – 5.5.0
    I use shorcode [wpp] to display popular posts.

    I have defined the sizes of the photos
    [wpp limit = “4” stats_views = “0” thumbnail_width = “150” thumbnail_height = “100”]

    In the WordPress dashboard, I have set Select image from: Featured image.

    Unfortunately, only the “No thumbnail” photo is displayed.

    I did a little investigation.
    To display a photo in the “get ()” (“src / Widget / Image.php”) function, set $ build to “predefined” – line 169

    Unfortunately, in the “wpp_shortcode ()” (“/src/Front/Front.php”) function rendering Shortcode it is not possible to pass the setting [‘thumbnail’] [‘build’]

    Please help where I can set [‘thumbnail’] [‘build’]
    to “predefined” to avoid overwriting the plugin code.

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

    (@hcabrera)

    Hi @inspirelabs,

    Not near a PC right now so I can’t check what’s going on. I’ll be back online tomorrow to help out with this.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @inspirelabs, good day!

    So I tried your shortcode and thumbnails loaded just fine here.

    I did notice however that your shortcode had some spaces between the parameters, the = sign, and their values (eg. limit = "4" stats_views = "0"). You want to remove those spaces, your shortcode should look like so:

    [wpp limit=4 stats_views=0 thumbnail_width=150 thumbnail_height=100]

    Thread Starter ilabs

    (@inspirelabs)

    Hi @hcabrera

    These spaces created while pasting the code here.
    You’re right the parameter values should be without quotes.
    I corrected it but it didn`t help.
    I checked it on a fresh WordPress instalation (5.8.2) on the default Twenty Twenty-One theme – everything is ok.

    In my project I am using Bedrock and the Genesis child theme.
    Looks like something is wrong with my theme.
    As I solve this problem, I will share it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with thumbnail – no thumbnail’ is closed to new replies.