Property Hive comes with it’s own set of default templates meaning you can display properties on your site without having to do any code.
Of course, there is a high chance that you will want to amend the layouts or data shown in someway. This is achievable but first let’s look at the template structure:
Note: All of the default templates can be found at YOUR_PLUGIN_DIR/propertyhive/templates/.
Note: We recommend that you NEVER change these files direct as any changes may be lost if you ever update the plugin. The preferred method is to create a copy of the template in your theme. See the ‘Overriding Templates’ section for more information on how to do this.
Contains the templates that apply to or can be displayed on more than one page, and in some cases might apply to every page on your site. Some examples of this are the sidebar, and search form.
Contains templates relating to individual components on the search results page (e.g. Pagination, price etc)
Following the same principle as /search/, this folder contains templates relating to individual components of the single property details page.
The Template for displaying property archives, also referred to as ‘Search Results’.
This is referenced within archive-property.php and contains the HTML for a single search result
Similarly to the above, if you show featured properties on your site, this is the HTML for a single featured property results.
As the two files above, this is the HTML for single recent property should you want to show new instructions or recently added properties on the site.
This is the main file used when someone views a single property details page on your site. This includes the content-single-property.php file below.
This file is included by the single-property.php file above and includes all of the components and details for an individual property page (images, features, descriptions etc)