Home › Forums › General Issues › Get a field object outside of the post context › Reply To: Get a field object outside of the post context
thanks i’ll try that!
anyway it would be cool to be able to do that with an acf function like
get_field_object( 'field_name', $post_id = false );
If the post id is false, it should return the field object without having to pass a real post id as an argument.
@Elliot if you read this…
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.