Support » Plugin: Latest Post Shortcode » First load without thumbnail

  • Resolved laucoste

    (@laucoste)


    Hello,

    Great plugin ! I have a issue please :

    My shortcode is :

    [latest-selected-content perpage=”4″ showpages=”4″ display=”title” titletag=”h3″ url=”yes” image=”thumbnail” elements=”27″ css=”four-columns as-overlay light” type=”page” status=”publish” orderby=”random” show_extra=”ajax_pagination,light_spinner,pagination_all”]

    When first loading the page, 4 items have a gray thumnail (no image).
    If I click “next page”, they do appear. If I come back on the first page, the thumbnails do appear.

    Why at the first load, something blocks thumbnail ? I use Autoptimize plugin and have excluded the folder :
    wp-content/plugins/latest-post-shortcode/assets/

    I still have the problem.
    Thanks for you help

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hello,

    The fact that you use the random order might give you results that do not have images. Also, the pagination, in this case (when using the random order), is not accurate. Try to set a placeholder image to the shortcode, so that, if the images are not found to fallback to the one you specify.

    I was not able to replicate the issue you mention. Is it possible to have a link to the page where you use the shortcode, so I can take a look there?

    Regards,
    Iulia

    laucoste

    (@laucoste)

    Hello Iulia,

    Thank you for your fast reply,

    1/ Your answers:

    – “The fact that you use the random order might give you results that do not have images.”
    => The posts do have a featured image

    – “set a placeholder image to the shortcode”
    => Hum, yes, but 3 times the same picture side by side is not the best 🙂

    2/ For the moment I do not have any live page, so may I share you a precise piece of code ?

    3/ Could a relation with the lazy loading function from Autoptimize, or a setting from Easy FancyBox related to my problem ?

    4/ Then, do you have a css setting that allow 5 columns (it seems that 4 is the maximum) ?

    regards,
    Lau

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hello,

    I understand. I will try to answer all the points.

    The posts do have a featured image OK, I understand, thanks for checking.

    3 times the same picture side by side is not the best Please upgrade to the
    latest version so that you can set multiple placeholders, see more details about this at https://iuliacazan.ro/latest-post-shortcode/#feature4

    For the moment I do not have any live page, so may I share you a precise piece of code ? This would not help me identify the issue, as I have to see the whole combination of CSS + JS you run on that page, to see if there is any conflict with other libraries.

    Could a relation with the lazy loading function from Autoptimize, or a setting from Easy FancyBox related to my problem ? Not sure what to answer here, libraries independent can work in one way, but cannot assess outside the global context.

    do you have a CSS setting that allows 5 columns The plugin provides out of the box the styles for 1, 2, 3 and 4 columns, but another customization is up to anyone that uses the plugin.

    Regards,
    Iulia

    Hello Iulia,

    OK, thank you.

    This new version with multiple placeholders should resolve my problem !

    What is the format of the list of multiple placeholders ? Because I see :

    “Define an image to be used for the posts that do not have a featured image. If you specify a list of images separated by comma, a random one from the list will be picked for each article that does not have a featured image.”

    But should I place in the field “IMAGE PLACEHOLDER” all the full URL separated with comma ?

    https://mysite.com/photo1.jpg, https://mysite.com/photo2.png, https://mysite.com/photo3.jpg, https://mysite.com/photo4.png,

    => it should work like that?

    Thank you,
    Regards,
    Lau

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Yes, just remove the spaces form the list, use only commas.

    Thank you !

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hello,

    I added support for 5 and 6 columns if you still need it. It’s in the new version I just released.

    I am marking this post as resolved, but you can open another ticket if you have other questions.

    Regards,
    Iulia

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.