Woocommerce Content and Excerpt in TAB

Support MB Tabs Woocommerce Content and Excerpt in TABResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45802
    JoeJoe
    Participant

    Hi Peter,

    a little while ago you gave me the following code :

    
    add_action('init', function () {
        remove_post_type_support('product', 'editor');
    });
    
    function remove_short_description() {
        remove_meta_box('postexcerpt', 'product', 'normal');
    }
    add_action('add_meta_boxes', 'remove_short_description', 999);
    

    I was asking for this to NOT display the post_content and the post_excerpt outside the Metabox tab; I used this last night and sadly it does not work completely (I think)

    A. both fields do not get displayed , which is good
    B. I setup two new CPT WYSIWYG fields, called them post_content and post_excerpt, those field do get displayed also,

    Here is the BIG but, how come the content of the original unchanged post_content and post_excerpt has vanished ?

    regards

    joe

    #45812
    PeterPeter
    Moderator

    Hello Joe,

    Do you mean the content and excerpt of the product don't show in the new custom field? In the previous topic https://support.metabox.io/topic/woocommerce-tabs/
    I suggest you create the custom field with IDs: content and excerpt, not post_content and post_excerpt. Please change the field ID and check the issue again.

    #46042
    JoeJoe
    Participant

    Just read your comment , and yes it did the trick, thank you very much

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.