Meta Box
Support Forum
Support › General › Possible to retrieve custom field value of specific page outside loop?
I'd need to display a custom field value from one specific page in the footer ouside of the loop in every page, but echo rwmb_meta( 'nsys_footer_left', 32 ); doesn't work as expected. 32 is the $post_id of the page with the custom field.
echo rwmb_meta( 'nsys_footer_left', 32 );
32
$post_id
rwmb_meta accepts 3 params. You missed the 2nd one. It should be:
rwmb_meta
echo rwmb_meta( 'nsys_footer_left', '', 32 );
Thank you very much!