WordPress.org

Forums

JM Twitter Cards
[resolved] Problems with twitter description meta name (4 posts)

  1. fouldsy99
    Member
    Posted 1 year ago #

    Since the last update, when I publish an article the twitter cards outputs this below:

    <meta name="twitter:description" content="[caption id="attachment_3879" align="aligncenter" width="600"]

    How can I remove this so the caption id etc isn't published?

    Regards

    https://wordpress.org/plugins/jm-twitter-cards/

  2. tweetpressfr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    My bad, I forget to re-add the strip_shortcodes(), it will be fixed in next update.

    In the meantime, you can use new filters as the following example does :

    add_filter('jm_tc_get_excerpt','jm_tc_strip_sc');
    function jm_tc_strip_sc( $content ){
      return strip_shortcodes( $content );
    }
  3. fouldsy99
    Member
    Posted 1 year ago #

    Where does this code need to go?

  4. tweetpressfr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi again. In a plugin or in your theme in functions.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JM Twitter Cards
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.