Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 33 total)
  • Author
    Posts
  • in reply to: Bug on Taxonomy field #38531
    Trang NguyenTrang Nguyen
    Participant

    Hi. Sorry for the wrong code.
    Here is the custom fields code:

    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    
    function your_prefix_function_name( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'      => __( 'Yoga Pose Fields', 'your-text-domain' ),
            'id'         => 10,
            'post_types' => ['yoga-pose'],
            'fields'     => [
                [
                    'name'       => __( 'Yoga Category', 'your-text-domain' ),
                    'id'         => $prefix . 'yoga_category',
                    'type'       => 'taxonomy',
                    'taxonomy'   => ['yoga-category'],
                    'field_type' => 'select_advanced',
                ],
            ],
        ];
    
        return $meta_boxes;
    }
    in reply to: Bug on Taxonomy field #38522
    Trang NguyenTrang Nguyen
    Participant

    Hi! It was created by Meta Box AIO:
    I can give you a temporary admin account to check if needed.

    add_action( 'init', 'your_prefix_register_taxonomy' );
    function your_prefix_register_taxonomy() {
    	$labels = [
    		'name'                       => esc_html__( 'Yoga Categories', 'your-textdomain' ),
    		'singular_name'              => esc_html__( 'Yoga Category', 'your-textdomain' ),
    		'menu_name'                  => esc_html__( 'Yoga Categories', 'your-textdomain' ),
    		'search_items'               => esc_html__( 'Search Yoga Categories', 'your-textdomain' ),
    		'popular_items'              => esc_html__( 'Popular Yoga Categories', 'your-textdomain' ),
    		'all_items'                  => esc_html__( 'All Yoga Categories', 'your-textdomain' ),
    		'parent_item'                => esc_html__( 'Parent Yoga Category', 'your-textdomain' ),
    		'parent_item_colon'          => esc_html__( 'Parent Yoga Category:', 'your-textdomain' ),
    		'edit_item'                  => esc_html__( 'Edit Yoga Category', 'your-textdomain' ),
    		'view_item'                  => esc_html__( 'View Yoga Category', 'your-textdomain' ),
    		'update_item'                => esc_html__( 'Update Yoga Category', 'your-textdomain' ),
    		'add_new_item'               => esc_html__( 'Add New Yoga Category', 'your-textdomain' ),
    		'new_item_name'              => esc_html__( 'New Yoga Category Name', 'your-textdomain' ),
    		'separate_items_with_commas' => esc_html__( 'Separate yoga categories with commas', 'your-textdomain' ),
    		'add_or_remove_items'        => esc_html__( 'Add or remove yoga categories', 'your-textdomain' ),
    		'choose_from_most_used'      => esc_html__( 'Choose most used yoga categories', 'your-textdomain' ),
    		'not_found'                  => esc_html__( 'No yoga categories found.', 'your-textdomain' ),
    		'no_terms'                   => esc_html__( 'No yoga categories', 'your-textdomain' ),
    		'filter_by_item'             => esc_html__( 'Filter by yoga category', 'your-textdomain' ),
    		'items_list_navigation'      => esc_html__( 'Yoga Categories list pagination', 'your-textdomain' ),
    		'items_list'                 => esc_html__( 'Yoga Categories list', 'your-textdomain' ),
    		'most_used'                  => esc_html__( 'Most Used', 'your-textdomain' ),
    		'back_to_items'              => esc_html__( '← Go to Yoga Categories', 'your-textdomain' ),
    		'text_domain'                => esc_html__( 'your-textdomain', 'your-textdomain' ),
    	];
    	$args = [
    		'label'              => esc_html__( 'Yoga Categories', 'your-textdomain' ),
    		'labels'             => $labels,
    		'description'        => '',
    		'public'             => true,
    		'publicly_queryable' => true,
    		'hierarchical'       => false,
    		'show_ui'            => true,
    		'show_in_menu'       => true,
    		'show_in_nav_menus'  => true,
    		'show_in_rest'       => true,
    		'show_tagcloud'      => true,
    		'show_in_quick_edit' => true,
    		'show_admin_column'  => false,
    		'query_var'          => true,
    		'sort'               => false,
    		'meta_box_cb'        => 'post_tags_meta_box',
    		'rest_base'          => '',
    		'rewrite'            => [
    			'with_front'   => false,
    			'hierarchical' => false,
    		],
    	];
    	register_taxonomy( 'yoga-category', ['yoga-pose'], $args );
    }
    in reply to: Bug on Taxonomy field #38516
    Trang NguyenTrang Nguyen
    Participant

    Hi. Thank you for your reply.
    I unchecked the option "Show on edit page" but still get the same issue. The selected terms keep disappearing from the Taxonomy field after reloading the page.

    in reply to: Getting Label of Select field on a group #36575
    Trang NguyenTrang Nguyen
    Participant

    Thank you for your note.

    Just want to double check if the code I used is correct. Seem like it is not a good way because if I use a '</br>', it will create many empty lines.

    in reply to: Getting Label of Select field on a group #36556
    Trang NguyenTrang Nguyen
    Participant

    Seem like the issue related to another Select field (nationality, inside the same group) which has the same list of countries as the field country_of_birth.
    Both of them get double result, but they get only one if I change the value of the options.

    in reply to: Hide terms on Taxonomy Field #36543
    Trang NguyenTrang Nguyen
    Participant

    Thank you. I will check it

    in reply to: Hide terms on Taxonomy Field #36484
    Trang NguyenTrang Nguyen
    Participant

    Many thanks for your reply. It works!

    I'm using the AIO plugin so I just need to put the 'exclude'/'include' into the Query args setting.

    But there is another issue: If I have more than 1 Taxonomy field assigning to the same taxonomy, only the last one saves data when updating the post.

    As I have a taxonomy named Characteristic with terms for hair colors, eyes color, ethnicity,... I want to put them into different Taxonomy fields (Hair, Eyes, Ethnicity for example. 3 of them are assigned to Characteristic taxonomy) to make it easy when editing the posts.

    I could create multiple new taxonomies for each of the groups but there are only 2 or 3 options for 1 group, making it too many taxonomies to manage.

    in reply to: Hide terms on Taxonomy Field #36461
    Trang NguyenTrang Nguyen
    Participant

    Hi. Thank you for your reply but I dind't mean that.

    The links you shared are for front end, using the query_args.

    I was asking for the back end, when using a Taxonomy Field of Meta Box, the editors/writers can see and choose only the term A, B, C, not all terms of a taxonomy.

    in reply to: Video duration format #36317
    Trang NguyenTrang Nguyen
    Participant

    Hi.
    Sorry, I didn't mean I use the video field.
    I would like to use a text or number field that when putting the data, the format should be some thing as 01:23:45 (manual typing, not automatic getting from a video).

    in reply to: Custom Table for Taxonomy with WPGridbuilder #36316
    Trang NguyenTrang Nguyen
    Participant

    Thank you for your help!

    in reply to: Custom Table for Taxonomy with WPGridbuilder #36299
    Trang NguyenTrang Nguyen
    Participant

    Hi! Thank you for your reply.

    I could get the image from the custom table but I couldn't use other size of its except the thumbnail. I tried this code but it always use the thumbnail instead of the large size:

    <?php
    $term_id = get_queried_object_id();
    $image = rwmb_meta( 'my_image', ['object_type' => 'term'], $term_id, ['storage_type' => 'custom_table', 'table' => 'my_table'], ['size' => 'large'] );
    ?>
    <a href="<?= $image['full_url'] ?>"><img src="<?= $image['url']; ?>"></a>

    Could you please help! Thanks!

    in reply to: Average value field of Range fields #33155
    Trang NguyenTrang Nguyen
    Participant

    Thank you for your info!

    Trang NguyenTrang Nguyen
    Participant

    Sorry support team for posting here but I can not send a private message to Beda!

    Hi Beda! Could you please share the full version of the WP Grid Builder facet to work with Metabox Custom Table? I used only the graphic interface and don't know how to apply your code into it.

    Also do you know how to make the OSM / GoogleMaps field of Metabox (doesn't need Custom Table) to work with WP Grid Builder Map? I tried to use directly but it didn't work because the data structure is different.

    Thank you in advance.

    in reply to: No menu on admin dashboard. #24364
    Trang NguyenTrang Nguyen
    Participant

    Ooops! Sorry! It was my mistake. I totally forgot to install the free Meta Box plugin 😀

    in reply to: Avoid data loss when internet is lost #23410
    Trang NguyenTrang Nguyen
    Participant

    Thank you. Hope there will be a way soon!

Viewing 15 posts - 1 through 15 (of 33 total)