Jul 30, 2021 7:21 pm
Hi there,
I use the following code, to show a custom post type on the author page instead of the default post type:
function custom_post_author_archive($query) { if ($query->is_author) { $query->set( 'post_type', array('my_post_type') ); } remove_action( 'pre_get_posts', 'custom_post_author_archive' ); } add_action('pre_get_posts', 'custom_post_author_archive');
This worked great, until I installed wpdiscuz.
This is a screenshot with wpdiscuz:
And this is a screenshot with wpdiscuz soft-disabled (plugin folder moved into tmp folder):
How can I fix this issue? Why is it there in the first place?
Thanks!
Regards,
Florian
11 Replies
Jul 31, 2021 9:17 am
Hi Florian,
Could you please leave some example URL to allow us to understand the issue?
Jul 31, 2021 1:18 pm
Sure thing. How can I send you private login details, because currently the page is under construction and requires login?