WordPress.org

Ready to get started?Download WordPress

Forums

  1. yivi
    Member
    Posted 1 year ago #

    How to retrieve the "name" of a field via PHP?

    Retrieving the value it's easy enough with "get_post_custom()", but that get's me the keys and the values. Types allows to set a display as well.

    How do we go around to displaying it? Where is it stored?
    Thanks and regards.

    I.-

    http://wordpress.org/extend/plugins/types/

  2. yivi
    Member
    Posted 1 year ago #

    Got it.

    Just "$options = get_option('wpcf-fields');'

    and then $options['fieldname']['name'] will hold the name.

    ("fieldname" being the name of your field).

    Thanks anyway.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.