Taxonomy not displaying since update to latest version

Support General Taxonomy not displaying since update to latest version

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2370
    MikeTrebilcockMikeTrebilcock
    Participant

    Since updating to 4.8.1 all the custom taxonomy has vanished from the front end display, I have updated all my extensions and checked the new structure in the demo file and updated where needed, but still no joy.

    currently I am just trying to get the arrays to print so i can see they are set, but i have come across one field that just won't work here is the code i am using:

      	$meta_boxes[] = array(
    	'title'  => __( 'Course Type2'),
            'post_types' => 'courses', 
            'context'    => 'side', 
    	'priority'   => 'low',
    	'autosave'   => true,        
    	'fields' => array(  
        
    			array(
    				'name'       => __( 'Course Type Taxonomy' ),
    				'id'         => "{$prefix}type_select",
    				'type'       => 'taxonomy',
    				'taxonomy'   => 'course_type',
    				'field_type' => 'checkbox_list',
    			), 
            ),
        );

    and then print the array on the front end:
    print_r( rwmb_meta('course_type_select' ));

    currently I get nothing returned.

    The site has only been in development for a few months so I didn't expect to have problems with the update as there is no legacy stuff.

    #2377
    MikeTrebilcockMikeTrebilcock
    Participant

    I have been switching between the old working version(4.7.2) and the new(4.8.1) trying to figure out the issue with the custom taxonomy not displaying.
    In the old version i have been using print_r(rwmb_meta( '' )); to print out all the custom meta fields but when I move over to the new version the array vanishes and i am left with the following warnings:

    Warning: call_user_func() expects parameter 1 to be a valid callback, class 'RWMB_Group_Field' not found in /home/site1/public_html/open-for-business.cornwall.ac.uk/wp-content/plugins/meta-box/inc/meta-box.php on line 353

    Warning: call_user_func() expects parameter 1 to be a valid callback, class 'RWMB_Group_Field' not found in /home/site1/public_html/open-for-business.cornwall.ac.uk/wp-content/plugins/meta-box/inc/meta-box.php on line 353 Warning: call_user_func() expects parameter 1 to be a valid callback, class 'RWMB_Group_Field' not found in /home/site1/public_html/open-for-business.cornwall.ac.uk/wp-content/plugins/meta-box/inc/meta-box.php on line 353

    Is this just a red herring? what's the new way to output all meta fields?

    #2381
    Anh TranAnh Tran
    Keymaster

    Hi, can you please update Group extension to the latest version to fix that?

    Also can you check if you register meta boxes for the admin area only, kind of:

    if ( is_admin() ) {
        add_filter( 'rwmb_meta_boxes', 'prefix_register_meta_boxes' );
    }

    The function to register meta boxes should be visible both on the admin area and frontend.

    #2478
    Anh TranAnh Tran
    Keymaster

    Hi again,

    I think I found the problem and fixed it here. The fix is available on Github. Can you please test it?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Taxonomy not displaying since update to latest version’ is closed to new replies.