How do i use the role of the author in wordpress loop and wp_query?
I want to restrict (or include) authors on various wordpress pages (home and category pages) by the wp_role the author has.
So, I need to know how to do this in both:
1.) query posts (for homepage)
2.) wp_query (for other pages)
I would like to do this in the most efficient manner possible.
e.g. On my homepage:
a.) Restrict contributor posts from display.
e.g. On my category pages:
a.) Posts order by (Editors first, Authors second, Contributors last)
I looked on the query post and wp_query and had no luck finding the way to do it.
- The topic ‘how do i use the role of the author in wordpress loop and wp_query?’ is closed to new replies.