• Hi everyone,

    I have a page on my website displaying all posts from a certain category using a template and the plugin Posts-In-Page by Ivycat (which basically creates a shortcode and a loop for WP_Query). Users should be able on this page only to order the posts by date asc/desc, title asc/desc and author asc/desc.

    date and title work as intended using orderby in the query, but author uses user_id and as such doesnt work (basically there is only one writer for the website but he credits other authors using Co-Author Plus) and returns an order by user.

    I figured I had to change the argument ‘author’ in the orderby, but I kept looking everywhere and couldn’t find an answer.

    TLDR: How to sort posts by author on a page using Co-Author Plus when you have multiple authors?

    https://www.ads-software.com/plugins/co-authors-plus/

  • The topic ‘Order by Co-Authors’ is closed to new replies.