Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #456073

    Hi!
    I have a popular problem: shortcodes are not work in excerpts. I tried to add this code to functions.php, but it changed nothing:

    add_filter('the_excerpt', 'do_shortcode');
    add_filter('widget_text', 'do_shortcode');

    Could anybody help me, please?

    #456246

    Hey aserakov!

    Are you using the advanced layout editor for your posts? If so then you’ll need to add the shortcodes to the “Excerpt” field when editing your post. If you do not see the excerpt field then click on “Screen Options” in the top right hand corner and check it to display.

    If your using a different element then send us a link to your page so we can get a better idea.

    Regards,
    Elliott

    #456275

    Hi, Elliott!

    For add excerpts I use excerpt field. Problem with shortcodes, which I type to this field —it’s not converted to text on the site.

    Here’s how it looks in the admin panel:
    Back-end

    And this is how it looks on the website:
    Front-end

    Alexander

    #456436

    Hi!

    Where did you get the shortcode? Is that from a plugin? Please give us a link to the actual page, we would like to check it. I tested one of the theme’s shortcodes in the excerpt field and it works fine.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.