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

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 3 weeks, 4 days ago.

  • 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.