Or even replace advert (advetrs) a different word? Because this page is blocked by Adblock addons 🙁
You can change the “advert” slug to something else by adding following code to your theme functions.php
add_filter("adverts_post_type", "my_adverts_post_type", 10, 2);
function my_adverts_post_type( $args, $type ) {
if( $type != "advert" ) {
return $args;
}
$args["rewrite"] = array( "slug" => "classified" );
return $args;
}
once you add it you can go to wp-admin / Settings / Permalinks and click “Save Changes” to reset WordPress router.
It works! Thx! 🙂
And do not tell yet what could be. If you create an ad, specify the price of $ 100.00. And in the ad shows already 10000.00 dollars O_o
Maybe it’s certainly something that I’ve done 😀
I fix this. My fault. Sry 🙁
Ok great :), i am resolving this thread then.