Hi, this is not possible, while you could list posts with auto-draft status in the [adverts_manage] shortcode using adverts_sh_manage_list_statuses filter, the post will not change status.
The post_status changes only when publishing the Ad from [adverts_add] shortcode.
I don’t need the status to change necessarily – in the example above I was talking about doing that manually. I had initially changed one from temporary to a regular draft to see if that would make it show up on the manage page, but it didn’t, so I ended up here! 🙂
I just want to figure out how to make those ad drafts that are being abandoned still be visible on the [adverts_manage] page, instead of only published ads. As long as I can get them to show up if someone comes back later to finish, I should be all set!
You can show the drafts on the [adverts_manage] by adding the code below to your theme functions.php file
add_filter( "adverts_sh_manage_list_statuses", "my_adverts_sh_manage_list_statuses" );
function my_adverts_sh_manage_list_statuses( $s ) {
$s[] = "auto-draft";
return $s;
}
Hmmm, it doesn’t seem to be working?
I created a subscriber-level account to test it, started an ad then navigated away before publishing, and the manage ads page still says “You do not have any Ads posted yet.”
http://manisteelove.com/classifieds/
(I also want to thank you for your great support – over the weekend I had a very bad experience with another plugin developer who seemed completely disinterested in helping with basic usability issues being reported by multiple users, some of whom had bought hundreds of dollars worth of add-ons and were understandably very upset. The developers who DO offer amazing support and extensive documentation deserve more thanks and recognition, and my WP Adverts experience has been absolutely wonderful!)
Hi, note that the draft will be left undeleted in rare cases only, usually when you leave the [adverts_add] page WPAdverts will delete the draft in the background.
If you do not want to automatically delete any of the drafts you can try adding the code below in your theme functions.php file
add_action( "init", "disable_auto_draft_deletion", 1000 );
function disable_auto_draft_deletion() {
remove_action('wp_ajax_adverts_delete_tmp', 'adverts_delete_tmp');
remove_action('wp_ajax_nopriv_adverts_delete_tmp', 'adverts_delete_tmp');
}