WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Tools
[resolved] Tweets as posts w/ Embed code (4 posts)

  1. Bradleycorn
    Member
    Posted 5 months ago #

    Hi,

    I'm using this plugin to pull in my tweets as blog posts. Wondering if it's possible to pull in the twitter embed code for the tweet (as the body of the post) instead of just the tweet content?

    http://wordpress.org/plugins/twitter-tools/

  2. Alex King
    Member
    Plugin Author

    Posted 5 months ago #

    Sure, you can replace the tweet content with the URL of the tweet and WordPress should pull it in as an embed instead. All the data and hooks you need for this are there, but this may have a bad effect on your load time if you're showing many embeds at once.

  3. Wordletz
    Member
    Posted 5 months ago #

    What are the chances of a pull request on github adding this feature getting merged?

    Something like this:
    A setting in Settings->Twitter Tools->Accounts->User
    Below the "Create blog posts from tweets"
    A setting for "Use embedded format for tweets"

    which basically does an if statement in create_blog_post for $post_content to equal $this->status_url() if the setting is enabled.

    I'd also like something to eliminate the title altogether, it just duplicates the content, so in most themes it's unnecessary. Something like a checkbox under 'use embedded format' that says 'Don't pull title from tweet' but without disabling the title prefix so you can still say something like 'From Twitter' if you wanted.

    If the odds are good I can throw something up over the weekend.

  4. Alex King
    Member
    Plugin Author

    Posted 5 months ago #

    Pretty slim. Just create a plugin for it:

    https://gist.github.com/alexkingorg/8907138

    Don't output the title for tweets by customizing your theme:

    http://alexking.org/tweets

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.