WordPress.org

Forums

Types
meta "name" (2 posts)

  1. yivi
    Member
    Posted 2 years 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 2 years 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

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.