Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found an error in this function rwmb_the_value #1342

Open
mamunur105 opened this issue Oct 16, 2019 · 0 comments
Open

I found an error in this function rwmb_the_value #1342

mamunur105 opened this issue Oct 16, 2019 · 0 comments

Comments

@mamunur105
Copy link

mamunur105 commented Oct 16, 2019

Although i am not good at english , i Hope i can explain the issue .
I Hope new update you resolve the issue .
I have A live project .I Add a new meta field type="background"
when i implement this code for output .

$css = rwmb_the_value( $field_id, '', '', false );

i need save again All the page . Otherwise showing error . if i have 5000 page or post that time i have no time to save again each page .
i Hope new update you resolve the issue .

here is my code :
// Page Header & Footer Disabling Metabox
$meta_boxes[] = array(
'id' => $prefix.'page_header',
'title' => esc_html__( 'Page Header', 'codexin' ),
'post_types' => array( 'page' ),
'context' => 'normal',
'priority' => 'high',
'fields' => array(

    array(
        'id'   => $prefix.'page_banner_background',
        'name'  => esc_html__( 'Banner Background', 'codexin' ),
        'type' => 'background',
    )
   
) // End fields

); // End codexin_page_header_footer
output :
$banner_css = rwmb_the_value( '_codexin_page_banner_background', array(''), '', false );

Warning: array_filter() expects parameter 1 to be array, string given in /home/yhcizf1aox3h/public_html/humandynamic.dragonlabhq.com/wp-content/themes/codexin/vendors/meta-box/inc/fields/background.php on line 160

Warning: Invalid argument supplied for foreach() in /home/yhcizf1aox3h/public_html/humandynamic.dragonlabhq.com/wp-content/themes/codexin/vendors/meta-box/inc/fields/background.php on line 161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant