Hi giocol62,
It seems like you’ve inserted the ticker shortcode within a post loop, which is causing it to display under every post in the grid. To address this issue, you have to place the ticker shortcode outside of the post loop so that it appears only once on the page.
Here’s a basic example:
- Locate the file or section of your theme where the page template is defined.
- Look for the loop that displays the posts in the grid.
- Place the ticker shortcode outside of this loop.
For instance, if your current code looks something like this:
<?php
// Start the loop
while (have_posts()) : the_post();
// Display post content
the_content();
endwhile;
?>
You should rearrange it like this:
<?php
// Display the ticker shortcode
echo do_shortcode('[t4b-ticker]');
// Start the loop
while (have_posts()) : the_post();
// Display post content
the_content();
endwhile;
?>
Let me know if this helps or if you need further assistance!
Best regards,
Iftekhar Alam
Realwebcare
-
This reply was modified 7 months, 3 weeks ago by
Realwebcare.
I’ve not inserted the Ticker in a loop.
In the normal WP Editor I’ve inserted 3 blocks:
– Shortcode for t4b-tiker
– a line
– a Grid
[t4b-ticker]
<!– wp: separator ………….
<!– wp: essential-blocks/post-grid ……………..
Looking at the code, I saw that in the grid parameters ther was the [t4b-ticker], even if I didn’t inserted it. I removed it from the code and now it works
Thank you for the update! I’m glad to hear that the issue has been resolved.
It appears that the problem was related to the ticker shortcode being included in the parameters of the post grid block, even though you didn’t intentionally insert it there. Removing it from the code has fixed the display issue.