WordPress.org

Ready to get started?Download WordPress

Forums

JM Twitter Cards
[resolved] Have plugin pull already-declared twitter author? (5 posts)

  1. Rob Roy
    Member
    Posted 11 months ago #

    Our theme already adds a twitter username field to the user profile so that it displays on the post. Is there a way to have this plugin pull that information rather than creating another spot to re-enter the twitter username?

    The site is http://chicagophoenix.com

    http://wordpress.org/plugins/jm-twitter-cards/

  2. jmlapam
    Member
    Plugin Author

    Posted 11 months ago #

    3.3.4 should do the trick. Just select "no" as option for Twitter's profile and provide key that belongs to your theme Twitter field

  3. Rob Roy
    Member
    Posted 11 months ago #

    I think almost! I did as instructed but it doesn't seem to be pulling the information (or maybe it isn't formatted correctly?).

    Here's my database information--

    umeta_id 613
    user_id 5
    meta_key twitter
    meta_value http://twitter.com/tonymerevick

    However, when I run the validator, I get this--

    twitter:creator
    @
    Unknown screen name

    And the output is this--

    <meta name="twitter:creator" content="@">

    I'm guessing the problem is that the theme is declaring the entire url and not just the username?

  4. jmlapam
    Member
    Plugin Author

    Posted 11 months ago #

    Hi, that's why I wrote some warning in the plugin option, in the plugin documentation and in the plugin changelog :

    However be careful, the value associated with the key MUST BE A USERNAME not a url

    So replace with tonymerevick instead of http://twitter.com/tonymerevick.

    If the theme does not allow you to do this you'll probably need to add my plugin field (select yes in option page).

  5. jmlapam
    Member
    Plugin Author

    Posted 11 months ago #

    mark it as resolved because now you can switch to your own Twitter field

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.