outside of the search result loop, i have the search form like this :
Sort by :
– post type
the languages choices must sort all the languages select option on the field ‘language’. That is what i want 🙂
because i am not on a post that is using this field (i am on the search page), i cannot use
to sort all options available for ‘language’ field.
get_field_object(‘language’) returns false because i am not on the scope of that field (this field is for posts not for pages).
I want something to get the field structure regardless of the post id.
Something like the export of acf fields, but with a function i can use on my theme/plugin
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!