Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Clique
  • #46731
    Darkwing Productions
    Member
    Post count: 15

    I cannot successfully make twitter status message posts in my blog with any consistency. Some appear just fine, while others simply display the url as a clickable link. I have noticed that the URL for some of the twitter links are different – some have “status” vs “statuses”. And there doesn’t seem to be any consistency to whether I use the http or https either.

    Pages in question:

    WordPress 3.8.1
    CliqueVersion: 1.5.3

    #47565
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi!
    I’d like to check the backend of your website, so to speed things up, could you let me know your login details via a private reply please?

    Thanks and cheers!

    #47640
    Darkwing Productions
    Member
    Post count: 15
    This reply has been marked as private.
    #48936
    Melanie – SUPPORT
    Member
    Post count: 11032

    Okay I investigated a bit and it seems this happens random?

    I copy pasted a status that’s working to a post that’s not working and it didn’t work. Then I tried pasting a status that’s not working to a post that’s working and saved, now that post isn’t working either anymore.

    Have you tried deactivating your plugins to see if that solves it?

    Cheers

    #50048
    Darkwing Productions
    Member
    Post count: 15

    yes, I did

    #50801
    Melanie – SUPPORT
    Member
    Post count: 11032

    I’ll ask the developer about that…

    #50889
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    Tested this on Twenty Fourteen and got the same issue, it was apparently fixed in WP 3.8.1 but evidently not.

    Can you try this plugin. You’ll need to upload it via FTP. https://gist.github.com/yurivictor/8444326

    – Ed

    #67447
    Darkwing Productions
    Member
    Post count: 15

    Can you be more specific? You say to upload it, but I don’t see any download option. And what do I do after I upload it?

    #67712
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please put this code in your functions.php at end of file under child theme directory .

    class FixTwitterOembed {
    private static $twitter_oembed_regex = '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i';
    public static function init() {
    self::add_actions();
    }
     
    public static function add_actions() {
    add_filter( 'oembed_providers', array( __CLASS__, 'fix_twitter_oembed' ) );
    }
     
    public static function fix_twitter_oembed( $providers ) {
    if ( isset( $providers[self::$twitter_oembed_regex] ) ) {
    $providers[self::$twitter_oembed_regex][0] = 'https://api.twitter.com/1/statuses/oembed.{format}';
    }
     
    return $providers;
    }
    }
     
    FixTwitterOembed::init();

    Hope you will understand .
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #67761
    Darkwing Productions
    Member
    Post count: 15

    But I don’t have a child theme

    #67779
    Melanie – SUPPORT
    Member
    Post count: 11032

    Can you please activate the child theme, create a functions.php and place the code there?

    #67795
    Darkwing Productions
    Member
    Post count: 15

    Are you saying the only way to fix this is to add a child theme and run my stuff through there? If that’s the case, then that’s not right, I don’t want to use a child theme because I had issues using one before. I shouldn’t have to use a child theme to get a feature to work, or else I would not have purchased this theme in the 1st place. Are you sure there’s no other fix?

    #67859
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can put this code at current theme’s functions.php .

    Thanks 🙂
    With Best Regards
    Swift Ideas

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register