Viewing 13 replies - 1 through 13 (of 13 total)
  • Same thing happening on my end. =/

    Same

    Thread Starter snippetfinance

    (@snippetfinance)

    Jetpack support can you please help!
    If anyone is a paid Jetpack customer could you notify support please about this issue.

    Seems like this was an intentional but poorly announced/explained change: https://kraft.blog/2020/05/jetpacks-publicize-now-uses-twitter-cards/

    I threw that fix in my functions.php, but there doesn’t seem to be a change. Has anyone else given it a try?

    Plugin Support fresatomica

    (@fresatomica)

    Hi,

    I can see you have already noticed that this is expected behavior on Jetpack 8.5.
    Publicize no longer attaches a picture to your tweets, but allows Twitter to display the Twitter cards they render.

    As a workaround, you can add this snippet (I’d suggest you use a plugin like Code Snippets for that):

    add_filter( 'jetpack_publicize_option', function( $option ) { 
        $option['attach_media'] = true;
        return $option;
    } );
    Thread Starter snippetfinance

    (@snippetfinance)

    Hi,

    Does this only attach if a feature image is present?

    I basically have two kinds of posts – article links (which require a Twitter Summary card) and charts (which require an attachment of the feature image).
    It all worked perfectly before but now both are shown as cards.

    Yuri

    Thread Starter snippetfinance

    (@snippetfinance)

    Apologies if I was to insert that code without using a plugin – does it go into functions.php?

    Yuri

    @fresatomica

    Hi. I’ve added that code to my functions.php. I was told it is executing correctly and is attaching its filter hook. However, the automatic Twitter updates are still not posting the image.

    Plugin Support lizkarkoski

    (@lizkarkoski)

    We really can’t trouble shoot that further. That type of customization is outside our scope of support.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Twenty theme. If the problem goes away, enable them one by one to identify the source of the problem.
    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    I fixed it. The code @fresatomica provided is either wrong or just doesn’t work for me for whatever reason. The first line says “jetpack_publicize_option,” which I changed to “jetpack_publicize_options” (plural), then it worked.

    Thread Starter snippetfinance

    (@snippetfinance)

    Will try that cause that code from @lizkarkoski @fresatomica didn’t work for me.

    Plugin Support fresatomica

    (@fresatomica)

    Good catch @salromano! Indeed the “s” is what makes the difference. The correct code can be copied from here:

    https://developer.jetpack.com/hooks/jetpack_publicize_options/

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Feature Image and Twitter Stopped Working’ is closed to new replies.