WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] Get fields by Field Group (2 posts)

  1. dodmax
    Member
    Posted 1 year ago #

    Hi,

    Is there any way to get all the fields belonging to a specific group?
    I need to display some user field group programmatically and without that it seems like I'll have to edit my code every time I add a new field.

    Thanks!

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi dodmax,

    I recommend looking at the acf.php code and finding the get_acf_fields function.

    With that data, you can get all the fields for a specific field group ($post_id for the field group is required)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.