WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Get the Google+ and Twitter links (2 posts)

  1. Virendra
    Member
    Posted 1 year ago #

    I want to use the Google+ and twitter links that can be added in User's profile using the WordPress SEO plugin and display them on the author page. Is there any way I can get those links from the plugin or do I need to fetch them using some other method say directly from database.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Virendra
    Member
    Posted 1 year ago #

    I found a way to do it in author.php file

    Just use the following to display the Google+ and Twitter links:

    <?php
    $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
    echo $curauth->googleplus;
    echo $curauth->twitter;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic