I have searched questions similar to mine but with no luck finding the answer I need.
I have Authors and I have Custom Post Types (CPT). My search results already display all CPT's -- but, additionally, I need something more specific than that. I need my search function to allow combined queries for a specific Author and specific CPT. For example, all Blogs by Albert Einstein.
This url "/?s=%20&author_name=alberteinstein" returns all posts across CPT's by Albert Einstein.
But if I add "&post_type=blogs" for the full url to filter for the CPT like this:
"/?s=%20&author_name=alberteinstein&post_type=blogs"
it does not filter for just Blogs -- it still returns all CPT's by the Author, same as above.
I need to be able to query for an Author and specific CPT.
This has been driving me crazy for weeks. Any help would be greatly appreciated.