-
Author
-
January 12, 2017 at 05:54 #149560Reflect GrowthParticipant
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
January 12, 2017 at 06:00 #149561Reflect GrowthParticipantI 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.
January 12, 2017 at 07:47 #149568Reflect GrowthParticipantI’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
January 13, 2017 at 04:33 #149674LauraModeratorHello, 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 solutionLaura 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 🙂
January 16, 2017 at 19:43 #149923RaduModeratorOk 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 -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.