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

  1. Virendra
    Posted 3 years 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.


  2. Virendra
    Posted 3 years ago #

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

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

    $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

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic