Hi,
but not if there are more then one author in “Posted by”
I am not sure how a post can have more than one author? By default there is only one author of one post.
Can you please provide me more details with some screenshots?
Thanks
Thread Starter
katrei
(@katrei)
Hello
We have a Plugin wich allows to put another author in. You can see a post here:
Thank you very much.
Kathirn
Thread Starter
katrei
(@katrei)
Hi Kathirn,
Can you please share which plugin it is?
Just to let you know in WordPress _posts table there is only one field called as post_author in which WPES search for author.
Thanks
I had the same question. I am also using a plugin that allows you to set more than one author. I imagine they are also using this plugin:
Co-Authors Plus
https://wordpress.org/plugins/co-authors-plus/
Thread Starter
katrei
(@katrei)
Sorry, I thought I had answered. Yes, we also use the Co-Authors Plus Plugin
Thank you for letting me know!
I will test and check the compatibility and update you here.
Sumit were you able to take a look at this? Thanks.
Hi,
I checked the “Co-Authors Plus” plugin.
They are creating a taxonomy named as “author”. Since WPES allows you to search in taxonomies thus it is possible to search for Co-authors. However, this taxonomy is hidden and not visible by default in settings.
Please add this code in theme functions.php
add_filter('wpes_tax', function($taxonomies){
$co_authors_tax = get_taxonomy('author');
if (!empty($co_authors_tax)) {
$taxonomies['author'] = $co_authors_tax;
}
return $taxonomies;
});
Once you added this you can see a new taxonomy in WPES settings “author” please select this taxonomy and you are done! 🙂
NOTE: Since WPES search only in term name and Co-Authors Plus storing username as term name then we can only search by username not display Name.
User display name is stored in term description. If I get more request to search in term description I will consider this to add this feature in future version.
Thanks
outstanding!
thanks for the help Sumit – that worked perfectly