WordPress.org

Forums

Twitter Cards
[resolved] Adding Twitter Usernames (3 posts)

  1. fouldsy99
    Member
    Posted 1 year ago #

    How can I add the author's twitter account next to the authors name on post pages where it says who the article is written by?

    I would like to display their twitter @username next to the authors name?

    Regards

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

  2. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year ago #

    See the "How do I add my Twitter account?" section of the FAQ:
    http://wordpress.org/plugins/twitter-cards/faq/

  3. fouldsy99
    Member
    Posted 1 year ago #

    The code below only pick specified twitter, how about for those users that have included their twitter account on their profile.

    Does it automatically add their twitter account?

    function twitter_custom( $twitter_card ) {
        if ( is_array( $twitter_card ) ) {
            $twitter_card['creator'] = '@niall';
            $twitter_card['creator:id'] = '1085';
        }
        return $twitter_card;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags

No tags yet.