How Do I Create An Author Article Archive?

Out-of-the-box, a url of http://yoursite/author/[author-slug] will generate a list of posts written by the author (the Author Archive).

That default list will only include posts, so if you want to display articles you need to tell WordPress to include them when it is grabbing the items.

The easiest way to do this is to add this function to your theme’s functions.php file:

/** * Include articles in author archive */ function add_articles_to_author_archive($query) { if ( !is_admin() && $query->is_main_query() ) { if ($query->is_author()) { $query->set('post_type', array( 'post', 'article' ) ); } } }


If you only want articles in the Author Archive then remove ‘posts’, i.e. array(‘articles’).

NOTE: The above only works if you are using WordPress authors (determined by Article > IssueM Settings > Name). The IssueM Author is only a text field and has no archive capability.

I don’t see an author link in my Articles/Current Issue page

Check that you are using the %BYLINE% tag in Articles > IssueM Settings > IssueM Article Shortcode Format – this will provide a link from your Articles (Current Issue) page

I don’t see an author link on a single article page

IssueM is not involved in the output of the article page, so if the author link is not being displayed you need to amend your theme.

The easiest and safest way to do this is to create a new template called single-article.php (you can probably clone the existing single.php) and amend it to generate the author archive link. This template will automatically get used by WordPress when generating the article page.

Still need help? Contact Us Contact Us