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