Custom Fields
Re-Envisioned
Support MB Settings Page Problem with getting Field Value

  • Creator
    Topic
  • #16615
    Resolved Manoj Kumar
    Participant

    Hi,

    I’m having a problem with getting the field values. My Code

    https://pastebin.com/xUD9KzjX

    And I’m using the below code to get the field value

    $settingData = rwmb_meta( 'bike_resources_detail', ['object_type' => 'setting'] );

    But it returns nothing. Kindly provide a solution.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #16623
    Anh Tran
    Keymaster

    Hi,

    You need to provide the option name in the settings page and put it in the 3rd parameter:

    $settingData = rwmb_meta( 'bike_resources_detail', ['object_type' => 'setting'], $option_name );
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash