Support » Plugin: Countdown Timer Ultimate » Shortcode doesn’t work in Excerpt

  • Resolved susantau

    (@susantau)


    I add this to the post:
    <div class=”larger”>Countdown to Arizona Gives Day</div>
    [wpcdt-countdown id=”6698″]

    Looks great inside full single post:
    https://soazseniorpride.org/arizona-gives-day-2019/

    But if I add the same shortcode to the manual Excerpt for this post, the countdown animation doesn’t display. The shortcode itself displays to the page. And since this displays to the home news page of this live site, I removed the shortcode from the manual Excerpt.

    Can you advise? I would love for this to work especially in the Excerpt that displays to the home news page.

    • This topic was modified 1 year, 9 months ago by susantau.
    • This topic was modified 1 year, 9 months ago by susantau.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • FOUND THE ANSWER!

    Just add this filter to the theme’s functions.php:
    add_filter(‘the_excerpt’, ‘do_shortcode’);

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    Thanks for reaching here.
    if your problem is resolved then please mark as resolve this ticket
    if you like our plugin and support please share your review and rate on the plugin it’s important for us

    thanks

    thanks, yes, this solved the problem. I have marked the ticket as resolved. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode doesn’t work in Excerpt’ is closed to new replies.