Custom Fields
Support General rwmb_the_value return 1st value of array.

  • Creator
  • #28915

    Is there a way you can return the only 1st value of a array returned by rwmb_the_value?

                 $body = 'image_upload_gallery_field_Sz3Nx6';
                 $body_value = rwmb_the_value( $body );

    Also is there a way to flatten the returned array into a string of text?
    I have an automotive website where the make/model is set by a select tree field. I can return the values, but when displaying on the page I'd prefer it to be a string of text rather than list.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.