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

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

12 Posts
2 Users
0 Reactions
1,320 Views
Posts: 22
Topic starter
(@zoker)
Eminent Member
Joined: 3 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: 7617
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 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: 3 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: 7 years ago

Illustrious Member
Posts: 7617

@zoker,

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

(@zoker)
Joined: 3 years ago

Eminent Member
Posts: 22

@asti Done 🙂

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

Illustrious Member
Posts: 7617

Thank you. 

We'll check and back to you asap. 

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

Illustrious Member
Posts: 7617

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

(@zoker)
Joined: 3 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: 7 years ago

Illustrious Member
Posts: 7617

@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: 3 years ago

Eminent Member
Posts: 22

@asti Sent 🙂

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

Illustrious Member
Posts: 7617

@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: 3 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: