Support » Plugin: Co-Authors Plus » Get Posts of Author

  • Hi,

    I cant find any documentation anywhere to retrieve all posts of an Author.
    I know current by going to /author/$author I will be able to see exactly that, however I need to implement the same functionality outside of that particular page as well.

    Appreciate any guidance here.


Viewing 7 replies - 1 through 7 (of 7 total)
  • Just to add,

    This does not work as well..

    Enterprise WordPress Support, Training, Scaling and Hosting Services


    Plugin Author Daniel Bachhuber


    Hand Built

    You can also use WP_Query‘s taxonomy query feature. Each author is stored in the database as a term of the author taxonomy, and bylines are managed in taxonomy term => post relationships.

    What doesn’t work about the documentation?

    Can you please provide an example?

    The following query does not work.

    $args[‘tax_query’] = array(
    ‘post_type’ => ‘post’,
    ‘taxonomy’ => ‘author’,
    ‘field’ => ‘slug’,
    ‘terms’ => $user_login,

    My data are in Greek. Could that be the cause?

    However, if I query for just the author name:

    $args[‘author_name’] = $user;

    The results appear correctly for only the first author.

    Any ideas?

    Thank you


    The query listed in the documentation does not work. In fact it wasn’t able to get any results at all. It would be fantastic if you can provide an example.


    Hello, any news on this?

    @grmedsite – I’m also looking for an answer on this. I’ve run multiple WP_Query’s but can’t seem to retrieve Guest Authors.

    Hello, any news on this?

    This seems like a basic feature, to be expected from the plugin right out of the box. Its a disappointment that it is not supported.

    Maybe any bypass?

    Thank you for any feedback.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Get Posts of Author’ is closed to new replies.