Co-Authors Plus
[resolved] How do you initiate cutom post type support? (3 posts)

  1. Jamil Jonna
    Posted 5 years ago #


    I am still not able to get archive pages to work for custom post types. In fact, there isn't any menu at all for co-authors plus in my installation, since updating to 2.51. I use the "Custom Post-Types" plugin to add my custom post types and I've made certain that "authors" are supported. If I must also use the taxonomy created by Coauthors, how do I do so? Here is my current code:

    [Code moderated as per the Forum Rules. Please use the pastebin]



  2. Jamil Jonna
    Posted 5 years ago #

    I should explain something further: I didn't need the recent update to add my coauthors because I was able to do so even before the 2.51 update.

    Does this mean I need to re-add them or something? Please advise.

  3. Jamil Jonna
    Posted 5 years ago #

    If anyone else is having this problem, read this post on how to ensure that author archives work for custom post types. Here is the code:

    `add_filter('request', 'add_pagination_to_author_page_query_string');

    function add_pagination_to_author_page_query_string($query_string){

    if (isset($query_string['author_name'])) $query_string['post_type'] = array('post','commentary', 'news');

    return $query_string;

    Where "commentary" and "news" are my custom post types. It is odd to me that when registering the taxonomy, including "author" didn't take care of this from the get.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic