• Resolved DaTinalein

    (@datinalein)


    When posting with the free version on Facebook, with some (not all) posts, there are weird shortcode lines as the post description above the actual post.

    Someone told me they look like DIVI shortcodes. Why is that and how can I stop it from being posted, and instead a proper headline being posted?

    Thanks all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    Please provide me screenshot of facebook posts with issue. I also need your website to debug.
    Thanks
    Mohammad

    Plugin Contributor Uriahs Victor

    (@uriahs-victor)

    Hello, the plugin tries to strip all shortcodes when sharing: https://github.com/Codeinwp/tweet-old-post/blob/production/inc/core.php#L766

    I am not sure why it would include the shortcodes

    Hi,
    Please find this code at this file:-

    'body' => array( 'message' => $finalTweet['message'],'link' => $finalTweet['link']),

    Replace with this code:-

    echo $finalTweet[‘message’];
    die();
    ‘body’ => array( ‘message’ => $finalTweet[‘message’],’link’ => $finalTweet[‘link’]),

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Now this print the message, take screenshot and share with me.

    Thanks
    Mohammad

    • This reply was modified 9 years, 2 months ago by mdshak.
    • This reply was modified 9 years, 2 months ago by bdbrown.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘posting on FACEBOOK with weird code’ is closed to new replies.