Show Cities and their listings on static pages in Reales WP

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!

Reales WP Site

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:


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)

Your done!

If you need help on this, don’t hesitate to contact me 🙂

4 thoughts on “Show Cities and their listings on static pages in Reales WP”

  1. Hello, Your idea is good. I changed the config files indicated but steps 1 and 2 did not work. When I created a sub category with a city name that is over the main apartment category this sub category is displayed on the property page and in the search boxes in the frontend. In case I believe this subcategory should be displayed in the admin panel of WordPress. This property page by city displays some properties and for 1000 properties how is the view?

      1. Hello,

        Now it worked, only has a detail the sub category appears in the admin panel of wordpress and in the user panel of the theme, is it possible to delete the subcategory of the user panel of the theme and just leave it in the admin panel of wordpress?


Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.