WordPress.org

Support

Support » Plugins and Hacks » Pods - Custom Content Types and Fields » [Resolved] What is the meta name for field names?

[Resolved] What is the meta name for field names?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Stacy (non coder)

    @functionmunchkin

    Is it pods_meta_fieldname or pods-form-ui-pods-meta-fieldname?

    Thanks.

    Plugin Contributor Josh Pollock

    @shelob9

    The name of the field is the name of the meta field. Presuming you are using meta storage, not table storage you can get the value for the field ‘example’ with get_post_meta( $id, 'example');. Just be sure to specify $id properly.

    Stacy (non coder)

    @functionmunchkin

    user meta key for custom user fields?

    Plugin Contributor Josh Pollock

    @shelob9

    Same principle, but using get_user_meta() instead.

    http://codex.wordpress.org/Function_Reference/get_user_meta

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    Worth noting that “pods_meta_{$name}” is the format of our form fields so they don’t conflict with other inputs on the editor screen.

    So you always just reference the field name in meta_key usage.

    Stacy (non coder)

    @functionmunchkin

    Thank you. So any pointers for using these names in shortcodes if it has to be ${name} ?

    Trying to use a custom profile field “height” in Formidable Plugin’s field shortcode [user_meta key=whatever]. It’s supposed to pull the current user’s value for the user field to display on the front end. Although it’s not working and they suggest it must be a wrong name.
    Tried [user_meta key=height],[pods_meta key=height], [pods_meta key=$height], [user_meta key=pods_meta_height],
    [user_meta key=pods_form_ui_pods_meta_height],
    [pods_form_ui_pods_meta key=$height]
    [pods_form_ui key=pods_meta_height]
    [pods_meta key=user_height]
    [user_meta key=pods_meta_user_height] (rendered empty)

    In some cases it rendered the shortcode , in other cases it rendered empty. E
    Either way I’ll need to use the names in shortcodes from time to time.

    Stacy (non coder)

    @functionmunchkin

    Will try this with php between shortcodes. Trying to learn.

    What is the line to display the current user’s height (pod field) please?
    (reading in codex that “get” refers to something different than display)

    Figured out the Formidable thing.

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    [pods field="height"] assuming postdata is already setup in the globals.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] What is the meta name for field names?’ is closed to new replies.
Skip to toolbar