How to Allow Users to Subscribe to Authors in WordPress594

How to Allow Users to Subscribe to Authors in WordPress
Author: InfoBeep - September 16, 2017 | subject to copyright

Why add subscribe to authors in WordPress?

If you have a multi-author website, then most probably there are chances that some of your WordPress viewers may want to subscribe to their authors.

Adding a subscription option to authors may even help you to grow viewers count of your website as the viewer would get the notification whenever those authors post and view the post.

Adding subscribe to authors feature in WordPress

In order to add subscribe link to the authors, follow the steps below:

  • Add the given HTML code in author’s bio section, as shown in the picture below:
<a href="">Subcribe Tom's Posts</a>


(note: here we have given a custom name Tom, you can replace it with your author. You can also add shortcode to manually insert into posts.)

  • Now add the code given below to your theme’s functions.php file or a site-specific plugin.
// Function to generate author's RSS feed link

function wpb_author_feed() {

$authorfeed=  get_author_feed_link( get_the_author_id(), '');

$authorfeedlink = '<a href='. $authorfeed . '>Subscribe to get more posts from ' .get_the_author_meta( 'display_name') .''  ;


return $authorfeedlink;


// Create a shortcode to display the link

add_shortcode('authorfeed', 'wpb_author_feed');

// Enable shortcode execution in WordPress text widgets

add_filter('widget_text', 'do_shortcode');
  • Now just use the shortcode [authorfeed], it will automatically generate to the posts of author’s RSS feed. Demo picture is shown below:

from tina

Add a subscribe to author link in the sidebar

Here, we will be using shortcode method to display a subscribe to author link in the sidebar. Now, you may follow the steps below:

  • Go to Appearance > Widgets and add a text widget to your sidebar
  • Now add [authorfeed] shortcode in the text area as shown in the picture below. And, click on save button.


(note: now WordPress will start displaying the widget on every page including homepage, category, tag archives, etc. To display subscribe link only on specific post follow the steps further.)

  • Install and activate ‘Display Widgets’ plugin.
  • After activated, visit widgets page and edit earlier added author’s feed.
  • Now you might be able to see new option to control widget display on different pages of your site. Select ‘Show on checked pages’. Then tick ‘Single Post’.
  • Lastly, click on save button.