Problem with getting Field Value

Support MB Settings Page Problem with getting Field ValueResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16615
    Manoj KumarManoj 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.

    #16623
    Anh TranAnh 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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.