WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Get Simple Fields Field Name or Description

[Resolved] Get Simple Fields Field Name or Description

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks for the kind words. Remember to give it a nice rating if you like it! 🙂

    And for your question, you could try this:

    // Fetch field info using a method in the simple fields class
    global $sf;
    $field_info = $sf->get_field_by_slug($your_field_slug, $your_fieldgroup_slug);
    
    // Show the output. Somewhere there the description should be...
    print_r($field_info);

    Maybe I should add the field name and description automatically to the output when using Extended Return Values. Probably more users/developers than you who need that info. Anyway, let me know if you get it to work or if you run into any problems!

    Hello!

    Thank you for the prompt response. I tested it and it worked! You saved my life! Thanks a lot.

    P.S. Already gave the plugin a 5-star rating.

    Thanks again!!!

    sugardaddy

    @sugardaddy

    Thank you for this trick.
    Actually, I tried it for a checkbox list and this doesn’t work.

    Help is appreciated…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Get Simple Fields Field Name or Description’ is closed to new replies.