Custom Fields
Support General Shortcode to display Settings Page info

  • Creator
  • #30986
    Resolved Thomas Pinkus

    Please forgive me, I'm new to the whole world and not a coder, so some of the terms and examples are not fully clear to me. BTW.. I'm using MB AIO.

    I have a settings page called "Station Settings" with the Settings Page ID being "station-settings"
    I have a Custom Field Group called "General Settings Group" with the Field Group ID being "general-settings-group"
    Within the field group is a custom field call "Weather" with the ID being "weather"

    I have tried various combinations of the Shortcode, the one that makes the most sense to me is below.
    But I can't seem to get it to display the contents of the field.

    [rwmb_meta id="weather" object_id="general-settings-group" object_type="station-settings"]

    Please do not point me to the Shortcode doc, because that is where I started with this example

    [rwmb_meta id="phone" object_id="site_option" object_type="setting"]

    What am I missing here? Help me Obi-Wan, you're my only hope.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #30994
    Long Nguyen

    Hi Thomas,

    The shortcode in the documentation is an example if you want to use the shortcode to output a field value in a settings page.

    Please change the attribute
    - id by your field ID: weather
    - site_option by your option name. You can get the option name when editing the settings page, screenshot
    and keep the attribute object_type="setting"

    The shortcode should be

    [rwmb_meta id="weather" object_id="your_option_name" object_type="setting"]
    Thomas Pinkus

    This worked PERFECTLY.... Thank you!!

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