• Resolved nexlynx

    (@nexlynx)


    I’ve created a Custom Settings Page named “global_settings”. I’ve created several date fields in this PODS. I’m creating a shortcode/function that needs to use these fields.

    How do I assign one of these fields (ex. start_date) to a variable in my function?

Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @nexlynx,

    Settings use the normal WP settings API:
    $my_option = get_option( 'my_custom_settings_my_option' ); // my_custom_settings is the pod, my_option is the field

    Or in your case:
    $my_option = get_option( 'global_settings_my_option' ); // global_settings is the pod, my_option is the field

    Cheers, Jory

    • This reply was modified 5 years, 6 months ago by Jory Hogeveen.
Viewing 1 replies (of 1 total)
  • The topic ‘How to use Custom Settings Page field in function’ is closed to new replies.