1. go to wp-admin / Pages panel edit the “Create Classified AD” page, in the text editor click “Text” tab and make sure your shortcode is not wrapped inside <code> or <pre> tag.
2. the paid ads are automatically activated when payment is received, right now it is not possible to hold them for moderation.
Thanks Greg, that resolved the formatting issue. Let me know if you think of a way to allow us to use MODERATE to verify the AD meets standards (that we publish to our subscribers).
Also, is there a way to change the formatting of the CREATE AD page. Owners would like to change from “Title” to AD “Title”, in the US people may think you are asking if they are Mr. or Mrs. or Ms, etc.
Thanks,
Daryl
One other question: I used the re-order page originally to order by Title. Now all new ADS are displayed last, instead of by date.
Anyway to fix this?
Daryl()
P.S. Thanks for everything, you do an amazing job of supporting your plugin!
1. in next wpadverts-wc release there will be adext_wc_payments_order_paid action executed when Ad is paid you will be able to use it to change Ad status to pending
add_filter("adext_wc_payments_order_paid", "my_adext_wc_payments_order_paid", 10, 2);
function adext_wc_payments_order_paid( $order_id, $advert_id ) {
wp_update_post( array(
"ID" => $advert_id,
"post_status" => "pending"
) );
}
but like i wrote this will be available in next release, or you can send me an email using contact form at https://wpadverts.com/contact/ i will send you a file which will enable it on site now.
2. to change the Title field label you can add the code below to your theme functions.php
add_filter( "adverts_form_load", "customize_adverts_add" );
function customize_adverts_add( $form ) {
if( $form['name'] != "advert" ) {
return $form;
}
foreach( $form["field"] as $key => $field ) {
if( $field["name"] == "post_title" ) {
$form["field"][$key]["label"] = "Ad Title";
}
}
return $form;
}
3. most likely the plugin changed wp_posts.menu_order column value for Adverts, the Ads are sorted first by menu_order (to allow featured ads) and then by date, you will need to restore the menu_order to 0 for ads.