• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Change permalink '/listings/' to '/apartments/' in AgentPress

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Change permalink '/listings/' to '/apartments/' in AgentPress

This topic is: resolved

Tagged: Agentpress, change permalink, custom post types

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 4 months ago by asterbird.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 5, 2013 at 7:27 pm #18351
    asterbird
    Member

    How do I change the permalinks from listings to apartments in the AgentPress Listings plugin?

    I have http://www.my-website.com/listings/apartment-60/
    and I would like to change it to
    http://www.my-website.com/available-apartments/apartment-60/

    Any ideas?

    February 11, 2013 at 8:12 am #19590
    Jen Baumann
    Participant

    See http://www.studiopress.community/topic/url-change-listings-parameter-to/

    February 13, 2013 at 10:13 am #20079
    asterbird
    Member

    Thanks, Jen! That worked.

    But document title still shows 'Listings' Where do I change that?

    February 13, 2013 at 1:17 pm #20122
    Jen Baumann
    Participant

    Like this:

    add_filter( 'agentpress_listings_post_type_args', 'child_agentpress_listings_post_type_args' );
    function child_agentpress_listings_post_type_args( $args ){
    $args['labels']['name'] = 'Apartments';
    return $args;
    }

    You can pretty much take any of the args from this:

    function create_post_type() {
    		$args = apply_filters( 'agentpress_listings_post_type_args',
    			array(
    				'labels' => array(
    					'name'					=> __( 'Listings', 'apl' ),
    					'singular_name'			=> __( 'Listing', 'apl' ),
    					'add_new'				=> __( 'Add New', 'apl' ),
    					'add_new_item'			=> __( 'Add New Listing', 'apl' ),
    					'edit'					=> __( 'Edit', 'apl' ),
    					'edit_item'				=> __( 'Edit Listing', 'apl' ),
    					'new_item'				=> __( 'New Listing', 'apl' ),
    					'view'					=> __( 'View Listing', 'apl' ),
    					'view_item'				=> __( 'View Listing', 'apl' ),
    					'search_items'			=> __( 'Search Listings', 'apl' ),
    					'not_found'				=> __( 'No listings found', 'apl' ),
    					'not_found_in_trash'	=> __( 'No listings found in Trash', 'apl' )
    				),
    				'public'		=> true,
    				'query_var'		=> true,
    				'menu_position'	=> 6,
    				'menu_icon'		=> APL_URL . 'images/apl-icon-16x16.png',
    				'has_archive'	=> true,
    				'supports'		=> array( 'title', 'editor', 'thumbnail', 'genesis-seo', 'genesis-layouts', 'genesis-simple-sidebars' ),
    				'rewrite'		=> array( 'slug' => 'listings' ),
    			)
    		);
    
    		register_post_type( 'listing', $args );
    
    	}
    February 18, 2013 at 7:27 am #20975
    asterbird
    Member

    Thanks, I was able to change all the labels. I see that I can decide what to support, which is great as I wanted to take out the genesis-layouts for the apartments.

    How to do that? I tried this:

    
    $args['supports']['genesis-layouts'] = FALSE;
    
    

    But the genesis layouts still show in the edit screen.

    February 19, 2013 at 3:41 pm #21465
    asterbird
    Member

    Actually, that was a different issue. I used the code found here to unregister genesis layouts.

    But I noticed that in the Listings admin screen, there is a heading that says "Listing Title"  I still need to change that, but it's an admin ui thing. Anyone know how to do this?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change permalink '/listings/' to '/apartments/' in AgentPress’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble