WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
Get Posts of Author (8 posts)

  1. jackjxtoh
    Member
    Posted 4 months ago #

    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.

    Thanks!

    https://wordpress.org/plugins/co-authors-plus/

  2. jackjxtoh
    Member
    Posted 4 months ago #

    Just to add,

    This does not work as well..

    http://vip.wordpress.com/documentation/list-posts-by-a-co-author/

    regards!

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 4 months ago #

    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?

  4. grmedsite
    Member
    Posted 4 months ago #

    Can you please provide an example?

    The following query does not work.

    $args['tax_query'] = array(
    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

  5. jackjxtoh
    Member
    Posted 4 months ago #

    Exactly,

    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.

    Regards

  6. grmedsite
    Member
    Posted 4 months ago #

    Hello, any news on this?

  7. sem101
    Member
    Posted 4 months ago #

    @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.

  8. grmedsite
    Member
    Posted 3 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic