WordPress.org

Forums

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

  1. Rob Roy
    Member
    Posted 2 years 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. tweetpressfr
    Member
    Plugin Author

    Posted 2 years 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 2 years 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. tweetpressfr
    Member
    Plugin Author

    Posted 2 years 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. tweetpressfr
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JM Twitter Cards
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.