Do all of your agents have listings currently? Have any of those agents been removed from within IDX Broker? You may want to reach out to help@idxbroker.com so this can be looked into further.
Agents can be seen here http://dev.lifesoftwares.com/metro/agents/
Currently all agents are showing as i have changed their status to active again.
But all change to draft daily except “Angie Porras”
All the agents are still there in the IDX Broker and only “Heather Williams ” have listings currently.
I find it strange how they change to draft automatically.
Agent info is updated daily, however it shouldn’t be changing them to draft.
Can you please add the following to your theme’s functions.php:
remove_action( ‘admin_init’, ‘impress_agents_idx_update_schedule’ );
This should disable the update function for now and we are looking into what may cause the imported agents to be changed to draft.
I have added the code on my theme’ functions.php but it still changed the agents to draft again.
Thank you. We are still trying to replicate the issue.
Can you also add this additional line to your functions.php file?
remove_action( 'impress_agents_idx_update', 'impress_agents_update_post' );
I have added this line also in the functions.php but today again the agents changed to drafts
Is this still occurring for you?
It may be due to the cron job that that action removes is already scheduled, in which case you’ll have to clear that already scheduled cron job.
Try adding this to your theme’s functions.php to remove that cron job:
wp_clear_scheduled_hook( 'impress_agents_idx_update' );
We may have a fix for this in the upcoming release. Stay tuned.
I am still facing this issue. I have now added the new code provided by you to my theme’s functions.php . I will let you know about the result tomorrow.
It is working fine now. Thank you 🙂