Reales WP is a great, minimalistic and easy to use Real Estate Theme for WordPress.
The theme is loaded with lots of nice features and useful shortcodes to handle your listings and more. But this Pro theme for WordPress still missing some important features to build your web project as you wish, with SEO in mind!
If you fx. want to make a static page, with a nice SEO friendly Url, that only shows all property listings from one city at a time, it isn’t possible without making some small tweaks, using the Reales WP Child Theme!
Here is a Guide about: “How to create a Static WordPress Page that only showing listings from one City, using the Reales WP
[recent_properties shortcode] and Sub-categories! (Demo here!)
1. Create one or more Sub-categories under a proper Main-category with the city’s name.
( Like: Apartments > New York City )
2. Now, let’s remove these Sub-categories from the Property category Dropdown-list again!
By default show Reales WP both Parent and Child property categories in the Category Drop-down, and there is no options in the theme-settings or the Search-Widget to change that.
OK, first you’ll need to copy/paste these 3 files into your Reales WP Child-theme:
/templates/filter_properties.php /templates/search_properties.php /libs/widgets/search_widget.php
Then, open these 3 files in your HTML/PHP editor and find this piece of php-code:
$cat_args = array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false );
Add the line “parent” like this in every file and hit save:
$cat_args = array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false, 'parent' => 0 );
3. Upload these 3 php-files to your webserver again!
4. Create a new page and insert the
[recent_properties shortcode] with your choice of the sub-category in the page.
5. Add this page to your menu! (Optional)
If you need help on this, don’t hesitate to contact me 🙂