Home › Forums › General Issues › Post Object Query By Author › Reply To: Post Object Query By Author
yeah i found =)
post object field uses get_posts for all post types and get_pages for pages
so if you want to filter them both
use
$args['author']=$user_id;
$args['authors']=$user_id;
but if you using custom post type why you didnt set the post type filter in the custom field options?
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.