• Resolved David

    (@loano1)


    Hi Greg, How can I change the advert location slug “advert-location”, added by WP Adverts Maps and Locations to something like “anzeigen-standort”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Loano1,

    have a look to my new AddonSuite for WPAdverts, there you can change this from admin dashboard (if MAL is installed and activated).

    With the AddonSuite for WPAdverts you have also some other options you can setup from the admin panel. Most of them are often asked within this forum.

    @gwin Greg: Hope it is ok, that I have posted this link here. I hope this plugin helps you to avoid recurring questions on specific topics.

    Best regards
    Pare

    • This reply was modified 6 years, 5 months ago by pare81.
    • This reply was modified 6 years, 5 months ago by pare81.
    Plugin Author Greg Winiarski

    (@gwin)

    Add in your theme functions.php file

    
    add_filter( "wpadverts_mal_register_taxonomy", "my_wpadverts_mal_register_taxonomy", 10, 2 );
    function my_wpadverts_mal_register_taxonomy( $args, $type = null ) {
      if( $type !== 'advert_location' ) {
        return $args;
      }
      $args['rewrite']['slug'] = "anzeigen-standort";
      return $args;
    }
    

    Then go to wp-admin / Settings / Permalinks panel and click “Save Changes” button it should apply new URL scheme to advert-category slug.

    Thread Starter David

    (@loano1)

    Thank you both for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Advert Location Slug’ is closed to new replies.