• elijahschow

    (@elijahschow)


    Context: we include a list of author metadata in the HTML head of our articles. Unfortunately, under certain circumstances, some authors are not being included in the list.

    Steps to reproduce

    1. Create a user account with the role of administrator. The bug won’t happen if the user is an author.
    2. Create a guest account with the same name and email.
    3. Create a post with multiple authors, including the account you created in steps 1 and 2.
    4. Try to get the co-author terms for the post you created:
      global $post_ID, $coauthors_plus;
      get_the_terms( $post_ID, $coauthors_plus->coauthor_taxonomy );

    Expected
    The user you created is included in the list of authors.

    Actual
    The user is not included in the list of authors. Change the user’s role
    to ‘author’, or deleting their wordpress account, or removing the guest entry
    will prevent this bug from happening, but if all three factors are present, the
    bug will occur.

    Note: we’re currently using version 3.4.2 of Co-Authors Plus, but updating to the latest version did not solve the issue.

    The page I need help with: [log in to see the link]

The topic ‘Bug: author missing from list’ is closed to new replies.