Support » Plugin: WPAdverts - Classifieds Plugin » How to add ID to URL link?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter gos_ant

    (@gos_ant)

    Or even replace advert (advetrs) a different word? Because this page is blocked by Adblock addons 🙁

    Plugin Author Greg Winiarski

    (@gwin)

    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.

    Thread Starter gos_ant

    (@gos_ant)

    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 😀

    Thread Starter gos_ant

    (@gos_ant)

    I fix this. My fault. Sry 🙁

    Plugin Author Greg Winiarski

    (@gwin)

    Ok great :), i am resolving this thread then.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add ID to URL link?’ is closed to new replies.