All about property custom taxonomies

Home » Knowledge Base » All about property custom taxonomies

In our theme the taxonomies are: Categories, Action, City, Neighborhood, County/State. You can find them in Dashboard, under Properties section.
FireShot Screen Capture #031 - 'Categories ‹ roxana test — WordPress' - roxana_wpresidence_net_wp-admin_edit-tags_php_taxonomy=property_category&post

One of the most important aspect about taxonomies is the way they are added. Always LET WORDPRESS CREATE THE SLUG (title and slugs must always match for search results to be accurate).

Pin mng 4

You can also add child categories:

Create or edit the category and select the parent category.

add child

Child categories can be on 2 levels:

child categories

NOTE:

Search over map and ajax search works with custom taxonomies ONLY if you add 1 category to each property. Same applies for action taxonomy. DON’T ATTACH A PROPERTY TO multiple categories or multiple actions. 

You can use child categories and assign the property just to child. Then the property will show in results when searching by parent category as well. 

Pins are built only for 1 category, 1 action or 1 category + 1 action. If you add multiple categories for 1 property, the first alphabetical category + action combination is attached to the property.

Search over map filters pins. Since there is 1 pin for property, the map map will show 1 pin only for properties with multiple categories attached. Same will happen in Half Map filtering.  So you may see “no results found” in map, but in list you do have results.

1.Create Taxonomy pages

The taxonomy pages are very easy to create.

Taxonomy 2

2.Add a taxonomy page to menu

Open a taxonomy page:

taxonomy 3

Copy taxonomy page URL

taxonomy 4

Go to Dashboard-Appearance-MENUS and add the link

taxonomy 5

The menu item will go to the bottom of the list, but you can change it’s position with drag and drop

taxonomy 6

3. Change the header of Taxonomy page

The header of the taxonomy page is the Global Header-the one that you set-up in Theme Options-General-Header

taxonomy 7

4.Change the layout of the taxonomy page.

You can choose between standard and half map from Theme Options-General-Appearance-Property List Type for Taxonomy pagestaxonomy 8

Half Map can only work with global header google maps.

Also, you can find more details here: http://help.wpresidence.net/2015/12/21/why-doesnt-google-maps-load-on-half-map-taxonomy-page-with-half-map-not-loading/

5.  Change sidebar and it’s position.

You can change the sidebar for taxonomy page from Theme Options-General-Appearance-Property Submission Post, Blog Category/Archive Sidebar

taxonomy 9

The position of the sidebar can be changed as well Theme Options-General-Appearance-Property Submission Post, Blog Category/Archive Sidebar Position

taxonomy 10

6. Add images and text to a city taxonomy or area taxonomy page

In order to add images to city and area taxonomies, you need to set the layout to standard.

You can find all the details here: http://help.wpresidence.net/2015/12/22/how-to-add-images-and-text-to-a-city-taxonomy-or-area-taxonomy-page/

7. The map zoom for taxonomy pages

These pages: advanced search results, properties list, taxonomies pages behave differently if google maps is set as header option. On these pages the map pins and properties in list are in sync. For this feature the map will change automatically the zoom to display all the pins from list in the map view. 

Because of this the manual zoom you set in theme options google maps settings or in page options google maps options will be disregarded.

8. Add taxonomies in Advanced Search Custom Fields setup

Taxonomies: Cities, Areas, State, Type, Category – must have LIKE for compare. Titles are not set in here. You can edit them with POEDIT (see Translation Chapter)

9vnStOk

Full help for search setup – http://help.wpresidence.net/2015/10/29/adv-search-custom-fields-setup/

8. Attach area to city if areas are imported or added from admin

From the Neighborhood panel you add Neighborhood / Area for your properties. You can add/edit/remove them from Admin – Properties – Neighborhood / Area. Neighborhood will display in Property Details, search and front end submission form.

ATTACH AREA TO A CITY and when users select a City, only areas for the city selected will show in search / properties list filters / submit with dropdowns.