Support Forum ยป User Profile

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • flimflim
    Participant

    Hi,

    It is all good now. Thank you so much!

    in reply to: โœ…How to change fields => id after created #30441
    flimflim
    Participant

    Many thanks ๐Ÿ˜€

    in reply to: โœ…How to change fields => id after created #30416
    flimflim
    Participant

    I can use a different id now. Thank you.

    I am new to WordPress and Meta Box, I wonder if I have some data input before, after change the metabox id, will those data become leftover in the database? If so, how to remove the previous id and data?

    in reply to: โœ…How to change fields => id after created #30400
    flimflim
    Participant

    This is how I create the field, I want to change the id "feature_list" to "highlight_features" but not work.

    add_filter( 'rwmb_meta_boxes', 'highlight_features_register_meta_boxes' );
    function highlight_features_register_meta_boxes( $meta_boxes ) {
        $prefix = '';
    
    $meta_boxes[] = [
        'title'   => 'Highlight Features',
        'id'      => 'highlight_features',
        'post_types' => 'product',
        'context' => 'normal',
        'fields'  => [
            [
                'type'  => 'wysiwyg',
                'name'  => 'Feature',
                'id'    => $prefix . 'feature_list',
        //'id'    => $prefix . 'highlight_features', <-- not work
            ],
        ],
    ];
    
    return $meta_boxes;
    }
    in reply to: โœ…Taxonomies in Post Types #27642
    flimflim
    Participant

    I have found the solution here.

    Use a regular select when setting Custom Taxonomy of a Custom Post Type

    In addition, I also check "Whether to display a column for the taxonomy on its post type listing screens." in order to show the Job Type column in Career listing screen.

Viewing 5 posts - 1 through 5 (of 5 total)