The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Custom post type on...
 
Share:
Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpDiscuz community!

Merry Christmas and Happy Holidays! πŸŽ„

[Solved] Custom post type on author page blocked by wpdiscuz

12 Posts
2 Users
0 Reactions
1,756 Views
Posts: 22
Topic starter
(@zoker)
Eminent Member
Joined: 4 years ago

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:

image

And this is a screenshot with wpdiscuz soft-disabled (plugin folder moved into tmp folder):

image

How can I fix this issue? Why is it there in the first place?

Thanks!

Regards,
Florian


11 Replies
Asti
Posts: 8205
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Hi Florian,

Could you please leave some example URL to allow us to understand the issue?Β 


Posts: 22
Topic starter
(@zoker)
Eminent Member
Joined: 4 years ago

Sure thing. How can I send you private login details, because currently the page is under construction and requires login?


9 Replies
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8205

@zoker,

Yes, sure please send the details to info[at]gvectors.com email address.Β 


(@zoker)
Joined: 4 years ago

Eminent Member
Posts: 22

@asti Done πŸ™‚


Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8205

Thank you.Β 

We'll check and back to you asap.Β 


Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8205

The issue isn't found anymore. Please watch this video:Β  https://www.screencast.com/t/PQBUsZ3vj


(@zoker)
Joined: 4 years ago

Eminent Member
Posts: 22

@asti Thanks for checking! But the issue was never on the frontpage, but on the author post page (usually located under /author/{author-name}, but in my case it is changed to /developer/{author-name}). You can find a link to a sample author page in the email. And there you can see the issue. Thanks!


Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8205

@zoker,

Could you please backup your WordPress site and send it to info[at]gvectors.com email address to allow us to check it. You can do it viaΒ Β Duplicator β€” WordPress Migration Plugin.Β 


(@zoker)
Joined: 4 years ago

Eminent Member
Posts: 22

@asti Sent πŸ™‚


Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8205

@zoker,

Please follow the steps below:Β 

1. Open the wp-content/plugins/impreza-sites/custom.php file

2. Remove or comment out the 88 lineΒ 

It should work fine.


(@zoker)
Joined: 4 years ago

Eminent Member
Posts: 22

@asti Yes that works, must have missed that line! Thank you very much!

Did you by any chance have a look at this topic?

https://wpdiscuz.com/community/troubleshooting/disable-main-form-only-allow-reply


Share: