I have noticed a “compatibility” problem with my MemberPress Pro plugin and custom post type, I believe I have so many taxonomy in a list, that when I try to open up some pages for MemberPress which use Hidden Custom Post Type, it doesn’t always load and dies, and I have to refresh several times and I think I have narrowed it down to the attempt to load the “Custom Post Type – Layout Settings” and populate the taxonomy list for the page. Is there a way to turn it off or disable it on these pages?
Appreciate any help, though it might be more a Memberpress issue not sure at this point.
I notice loading the primary taxonomy is causing PHP to Fatal error out of memory, Allowed memory size of 536870912 bytes exhausted (tried to allocate 8388616 bytes). I have almost 2,000 tags, is that causing the issue? too many tags? I don’t think I see this with regular post, only seems to be in MemberPress pages?
Hi,
Usually allowed memory size is when the wp memory limit is to low, make sure that you have set the theme requirements as in our guide -> https://forum.tagdiv.com/requirements-for-newspaper/ also because you have some many tags is possible to need at list double of wp memory limit.
Hope this will help you!
Let me know the results!
Calin, I think I am good on memory, my memory limit on this server is 500MB for PHP scripts, I do some heavy lifting, the overall server is an 8gig memory, I think it is a bug with Memberpress, but is there a way to turn it off, I am not sure if the “Custom Post Type – Layout Settings” is a WordPress native thing or newspaper theme. Just trying to figure out how to remove, if nothing more then testing. Thanks.
So I guess I am looking for something like this:
function custom_remove_meta_box() {
remove_meta_box(‘icl_div’, ‘post’, ‘side’);
remove_meta_box( ‘icl_div_config’, ‘post’, ‘normal’ );
}
add_action( ‘admin_head’, ‘custom_remove_meta_box’, 11 );
But not sure how to adapt this to newspaper theme?
Hi,
You can do this be comment some code in theme files -> https://i.imgur.com/Meh6WBg.png the file path is wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/content-metaboxes/td_templates_settings.php
But I’m not sure that this will improve or not the situation.
Let me know the results!
Hi,
I think that you can achieve a button for enable or disable CPT, you need to set some conditions and these to be tiger by an theme option or something, but this require some more skills that I have to can help you, sorry! Also just like you said, this implementation will need to be made after each them update.
As for the tags, I do not know, it can be a cause, but I cannot say for sure.
Thank you!