WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. fouldsy99
    Member
    Posted 4 months 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. jmlapam
    Member
    Plugin Author

    Posted 4 months 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 4 months ago #

    Where does this code need to go?

  4. jmlapam
    Member
    Plugin Author

    Posted 4 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.