This topic has 4 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #149560
     Reflect Growth
    Participant

    I have created a custom WP Query within a shortcode & visual builder text block (having followed the first example on the codex) after which I’m using the Kleo Posts Carousel block. The idea being that I wanted to show the post excerpt, followed by the same post’s featured image.

    Even though I’ve used the wp_reset_postdata() within my code, the Carousel block always seems to start at the “next post” even though the query should be the latest post only.

    Can you advise if there is something I need to do differently to ensure the Kleo Post Carousel block is not impacted by a custom WP_Query preceding it?

    Thanks, Matt

    #149561
     Reflect Growth
    Participant

    I should add that, in trying to debug, when I remove my shortcode entirely from the page, the Kleo Post Carousel shows the latest post as expected.

    #149568
     Reflect Growth
    Participant

    I’ve side-stepped this issue, by using the Grid Builder tool to create a new layout and scrapping my original code.

    Very weird, but hey all good now!

    Cheers, Matt

    #149674
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #149923
     Radu
    Moderator

    Ok then, the Post Grid gives you posibility to create certain templates.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?