[Support request] Text Shortcode Does not Appear in Excerpts on Archive Pages

Home Forums Support [Support request] Text Shortcode Does not Appear in Excerpts on Archive Pages

Home Forums Support Text Shortcode Does not Appear in Excerpts on Archive Pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1144428
    Tatsiana

    I am using a plugin, which inserts dynamic text inside the articles in each post via a [shortcode]
    In each post there is a [shortcode] and whenever the plugin sees this shortcode, it replaces this shortcode with a piece of text.
    Plugin works very well, and whenever the text in the source file (a .csv file) changes, the text in the post changes.

    However, this text, which is generated this plugin via the shortcode, does not appear in the excerpts in the archives. So, the text in the post and its excerpts are not the same.

    Would there be a solution to see this text, generated by the plugin, to appear in the excerpts in archives?

    Thank you

    #1144841
    Leo
    Staff
    Customer Support

    Hi there,

    WordPress ignores HTML in excerpts by default.

    You could try using the more tag:
    https://docs.generatepress.com/article/using-the-more-tag/

    Or try the excerpt metabox:
    https://www.wpbeginner.com/plugins/add-excerpts-to-your-pages-in-wordpress/

    Not 100% sure if it would work but those are the only 2 possible solutions.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.