Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nick C

    (@modernnerd)

    Hi, melissab737.

    You can modify the ‘listings’ part of your URL like this:

    1. Add the following code to your active theme’s functions.php file:

    add_filter( 'agentpress_listings_post_type_args', 'custom_agentpress_listings_post_type_args' );
    function custom_agentpress_listings_post_type_args( $args ){
        $args['rewrite']['slug'] = 'listings';
        return $args;
    }

    2. Change ‘listings’ to the new name you want to use in your URL structure.

    3. Visit Settings → Permalinks in your WordPress admin area and click “Save Changes”. (You don’t have to change any settings there.)

    Thread Starter melissab737

    (@melissab737)

    Thanks Nick, that worked great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change default "listings" directory to another name’ is closed to new replies.