WordPress.org

Ready to get started?Download WordPress

Forums

Magic Fields 2
[resolved] how to get a field option from wp_mf_custom_fields table? (3 posts)

  1. Tnichya
    Member
    Posted 1 year ago #

    Is there a function that can retrieve a field's options?

    I'd want to retrieve the post_type of my related_post, that's why I'd want to know if there's a function that can give me this related post_type that is in the table "options" of the table wp_mf_custom_fields.

    Thanks

    http://wordpress.org/extend/plugins/magic-fields-2/

  2. Magenta Cuda
    Member
    Posted 1 year ago #

    This call

    get_field_options( 'your related field', get_post_type() )['post_type']

    using code from here should do it.

  3. hunk
    Member
    Plugin Author

    Posted 1 year ago #

    wow thanks MAgenta Cuda

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic