Home › Forums › Front-end Issues › Querying all posts send by non-login user to a specific author › Reply To: Querying all posts send by non-login user to a specific author
Thanks a lot.
But the code is still not working.
There are very many companies who are signing up . How can i get all their ID’s dynamically without using
// Get the company’s user ID (depends on how you set it)
$company_id = 2;
Its like the post author of the newly created messages is not updating with the companies ID.
The query $args = array( ‘post_type’=>’message’,’author’=>$user );
Is returning nothing
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.