WordPress.org

Ready to get started?Download WordPress

Forums

  1. Martin
    Member
    Posted 7 months ago #

    I was wondering if there is a functions.php snippet I could use to disable this plugin from displaying, for certain custom post types?
    I becomes problematic with the growing number of CPTs that I need to add a custom field to exclude this display as well as some CPTs don't enable the custom fields as well.

    Any help there?

    http://wordpress.org/plugins/author-box-with-different-description/

  2. Sanjeev Mohindra
    Member
    Plugin Author

    Posted 7 months ago #

    Are you just looking for CPT or if I provide a way to block it for selected category will also do?

  3. Martin
    Member
    Posted 7 months ago #

    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.

  4. Sanjeev Mohindra
    Member
    Plugin Author

    Posted 7 months ago #

    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..

  5. Sanjeev Mohindra
    Member
    Plugin Author

    Posted 5 months ago #

    Marking it as resolved. Let me know if you need anything more.

  6. Martin
    Member
    Posted 2 months ago #

    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?

  7. Martin
    Member
    Posted 2 months ago #

    hello? :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.