• Resolved giocol62

    (@giocol62)


    I inserted the Ticiker in a fixed page with a Post Grid. It display on the top of the page, where I put it, but also under any post diplaied in the grid.
    If I select “Show in Homepage Only” the Ticker is not visible in the page.

    The page I need help with: [log in to see the link]

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

    (@realwebcare)

    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:

    1. Locate the file or section of your theme where the page template is defined.
    2. Look for the loop that displays the posts in the grid.
    3. 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 11 months, 3 weeks ago by Realwebcare.
    Thread Starter giocol62

    (@giocol62)

    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

    Plugin Author Realwebcare

    (@realwebcare)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ticker displayed many time with Post Grid’ is closed to new replies.