- This topic has 1 reply, 2 voices, and was last updated 2 years, 8 months ago by .
- You must be logged in to reply to this topic.
Sales That Work
Home › Forums › Agent Focused Theme › Rename Communities
Hi I need to rename the communities section of the agent press theme, anyone know exactly how to. Thank you
You can rename the communities by adding some code to the end of your functions.php file.
Please make a backup before you edit this file.
Also I have changed the “communities” to “estates”, so you will need to edit the word “estate” to the word you want to use. Only edit the words “Estate”, “Estates”, or estate, do NOT edit anything else.
// Change the Communities Types to Estate Types.
add_action( 'init', 'af_change_community_post_taxonomy' );
function af_change_community_post_taxonomy() {
// Register Estate Type Taxonomy taxonomy for the Estate custom post type.
register_taxonomy( 'wap-community-type', 'wap-community',
array(
'labels' => array(
'name' => _x( 'Estate Type', 'taxonomy general name', 'agentfocused' ),
'add_new_item' => __( 'Add New Estate Type', 'agentfocused' ),
'new_item_name' => __( 'New Estate Type', 'agentfocused' ),
),
'exclude_from_search' => true,
'has_archive' => true,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'estate/type', 'with_front' => false ),
'show_ui' => true,
'show_admin_column' => true,
'show_tagcloud' => true,
)
);
}
// Change the Communities to Estates.
add_action( 'init', 'af_change_community_post' );
function af_change_community_post() {
// Register Estates custom post type.
register_post_type( 'wap-community',
array(
'labels' => array(
'name' => __( 'Estates', 'agentfocused' ),
'singular_name' => __( 'Estate', 'agentfocused' ),
'all_items' => __( 'All Estates', 'agentfocused' ),
'add_new_item' => __( 'Add New Estate', 'agentfocused' ),
'add_new' => __( 'Add New', 'agentfocused' ),
'edit_item' => __( 'Edit Estate', 'agentfocused' ),
),
'has_archive' => true,
'hierarchical' => true,
'menu_icon' => 'dashicons-admin-home',
'public' => true,
'rewrite' => array( 'slug' => 'estates', 'with_front' => false ),
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'revisions', 'page-attributes', 'genesis-seo', 'genesis-layouts', 'genesis-cpt-archives-settings' ),
'taxonomies' => array( 'wap-community-type' ),
)
);
}
There are a lot of different types of mortgages, and there are a lot of different types of real estate property. Here is a list of the most common types of each. We’ve added some links to the most popular articles on the subject.
We think getting many viewpoints to a particular question is important because it helps you to make better decisions. It’s so important that we have woven the Forum all throughout Winning Agent. We invite you to ask questions, make comments, and be part of the discussion.