Support Forum » User Profile

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • John AndersonJohn Anderson
    Participant

    That worked. Thanks peter.

    John AndersonJohn Anderson
    Participant

    I did try un-installing and re-installing a fresh copy of this plugin from Metabox website but the same error occurred.

    in reply to: Last update breaks my wordpress #21024
    John AndersonJohn Anderson
    Participant

    Hi I just came across this as well. FTP in and remove the plugin meta-box-builder. download the newest version from this site then install it like you would a new plugin.

    in reply to: How to display all CPT rows on a page #16910
    John AndersonJohn Anderson
    Participant

    Oh nice. thank you. I've used WP_Query in the past but am not doing a lot at the moment and had forgotten about it.

    Thank you for the quick response and the good ideas!

    in reply to: How to display all CPT rows on a page #16902
    John AndersonJohn Anderson
    Participant

    As if you were displaying the CPT in an Archive page. That kind of thing. But in this instance I want to control or limit which posts I display from this CPT.

    in reply to: How to display all CPT rows on a page #16900
    John AndersonJohn Anderson
    Participant

    ticking notify checkbox.

    in reply to: Different CPT fields showing in my CPT #16322
    John AndersonJohn Anderson
    Participant

    Hello Anh,

    Thank you. That is an Australian voice!

    Below is the code for the custom fields for the CPT 'team-member'. 'team_position' is only used once, but it is linking to a taxonmy called 'team-positions'. Could this be the issue?

    John.

    add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
    
    function your_prefix_register_meta_boxes( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = array (
            'title' => esc_html__( 'Team Member', 'text-domain' ),
            'id' => 'team-member',
            'post_types' => array(
                0 => 'team-member',
            ),
            'context' => 'after_title',
            'priority' => 'high',
            'fields' => array(
                array (
                    'id' => $prefix . 'heading_n402g7bza5',
                    'type' => 'heading',
                    'desc' => esc_html__( 'Information about this Individual', 'text-domain' ),
                    'name' => esc_html__( 'Individual Header', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_summary',
                    'type' => 'textarea',
                    'name' => esc_html__( 'Summary', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_title',
                    'type' => 'text',
                    'name' => esc_html__( 'Title or job description', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_position',
                    'type' => 'taxonomy',
                    'name' => esc_html__( 'Position', 'text-domain' ),
                    'desc' => esc_html__( 'This is the team member position in a general sense.   This is not specific to their role in any Challenge.', 'text-domain' ),
                    'taxonomy' => 'team_positions',
                    'field_type' => 'checkbox_tree',
                ),
                array (
                    'id' => $prefix . 'team_individual_url',
                    'type' => 'url',
                    'name' => esc_html__( 'Individual URL', 'text-domain' ),
                    'desc' => esc_html__( 'Link to this person\'s page / bibilography', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_email',
                    'name' => esc_html__( 'Email Address', 'text-domain' ),
                    'type' => 'email',
                    'desc' => esc_html__( 'Email Address for this individual', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_facebook',
                    'type' => 'url',
                    'name' => esc_html__( 'facebook', 'text-domain' ),
                    'desc' => esc_html__( 'facebook link', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_twitter_handle',
                    'type' => 'text',
                    'name' => esc_html__( 'Twitter Handle', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'heading_sigt24rh4qc',
                    'type' => 'heading',
                    'desc' => esc_html__( 'Organisation', 'text-domain' ),
                    'name' => esc_html__( 'team_organisation', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_organisation_name',
                    'type' => 'text',
                    'name' => esc_html__( 'Organisation Name', 'text-domain' ),
                    'desc' => esc_html__( 'Name of the organisation this person represents', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_organisation_logo',
                    'type' => 'single_image',
                    'name' => esc_html__( 'Organisation Logo', 'text-domain' ),
                    'desc' => esc_html__( 'the image that will be the organisation logo', 'text-domain' ),
                ),
                array (
                    'id' => $prefix . 'team_organisation_url',
                    'type' => 'url',
                    'name' => esc_html__( 'Organisation URL', 'text-domain' ),
                    'desc' => esc_html__( 'URL for the organisation icon link', 'text-domain' ),
                ),
            ),
            'style' => 'seamless',
        );
    
        return $meta_boxes;
    }
    in reply to: WP All Import/Export Add-on #16317
    John AndersonJohn Anderson
    Participant

    Yes it is a simple import. I will use the plugins you have mentioned. Thank you.

    in reply to: WP All Import/Export Add-on #16293
    John AndersonJohn Anderson
    Participant

    Hi Anh,

    Is there any update on this? are we able to import data from a spreadsheet/csv file into a Metabox CPT?

    Thanks,
    John.

    in reply to: Displaying Featured Image in Admin Columns #16250
    John AndersonJohn Anderson
    Participant

    Oh! I love you!!! lol.

    And you updated the documentation for Admin Columns with this example! Now I just change the 'post' slug to what ever slug my CPT is and it will display the featured image in the admin columns.

    Thank you!

    Just one last question.

    new My_Featured_Image_Columns( 'post', array() );
    when I instantiate the class, how would I do so for more than 1 CPT? I tried this but it didn't work.

    new My_Featured_Image_Columns( array('team-member','challenge'), array() );   
    

    So I am guessing that 2 instantiations are necessary.

    new My_Featured_Image_Columns( 'team-member', array() );
    new My_Featured_Image_Columns( 'challenge', array() );

    Thank you,
    John.

    John AndersonJohn Anderson
    Participant

    done!

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