Hello,
I’ve used the user field (relational) of ACF Pro on my website because I need to have multiple authors for some of the posts.
The name of the authors are displayed on the posts with a link to the archive page for each author but only one author is the official author for WordPress and the other(s) one are not count as authors. So I have author archive pages that don’t show all the posts they should (and some return a 404 error).
I’ve found some info in the forum but not what i need.
I’m using the Divi Theme and the new function Theme Builder to modify the way the author archive pages are displayed so I would like to change the query of the post without changing directly the original php files for future updates.
I think the solution might be to change the way the query is done on the post using the pre_get_posts function with is_author in my functions.php file in my child theme but as it’s a reverse relational query I’m not sure how to make it work in that case.
Does anybody already done that ?
Thank you
Hello,
Nobody already did something like this ?
Any help would be appreciated on this.
Thank you