Are you just looking for CPT or if I provide a way to block it for selected category will also do?
Thread Starter
Martin
(@rastarr)
More so to disable on certain CPTs actually, Sanjeev.
Such as disabling on all Woocommerce products, WP Deals Engine and the like. The latter hasn’t got custom fields enabled either so that’s an added thorn in my side 🙂
I love your plugin for Posts. It’s just the other stuff that it looks out of place and I’d love to be able to disable your plugin on these, on a global level.
I have created a small function which can help you remove Author box on selected CPT’s.
You can check the gist mentioned below:
Remove Author Box
You need to update the array with the selected CPT’s where you do not want to display the author box.
This snippet does require custom fields for those CPTs. Let me know if you still face this issue after this..
Marking it as resolved. Let me know if you need anything more.
Thread Starter
Martin
(@rastarr)
Hi,
Sorry but I have only got to trying this now.
Reason being is I have a new Amazon Products plugin that uses WooCommerce for display etc and once the auto-products get created, the author description is getting displayed.
I don’t know why but this snippet doesn’t work.
I presume instead of Woocommerce above that I’m using the proper CPT of product, yes?
Any other thoughts on why it doesn’t work?