I would create a search functionality in header.php that finds posts by simple fields values.
I need a list of all field names and selectable values that are saved in a fieldgroup.
i can’t find a function that works outside the loop.
simple_fields_fieldgroup('my_fieldgroup_slug')returns an empty array.
this is an example image to how search box should be:Image
- The topic ‘getting fields data of a fieldgroup outside the loop’ is closed to new replies.