To display listings on a static page in WPCasa we can use the
[wpsight_listings] shortcode. The available parameters allow us to define exactly which listing we want to be displayed. This way we can easily organize our listings on several pages for quicker access e.g. using the menu.
We will be creating a listing archive like this:
When you first activate WPCasa a static page Listings with the shortcode will automatically be created. Please access your WordPress admin and browse to WP-Admin > Pages and click on the title of the mentioned page. If, for some reasons, it does not exist, create a new page and add the shortcode.
Without any parameters the shortcode will display your latest listings. If you haven’t changed the WordPress reading settings, it will display
10 listings before paging applies.
Latest For Sale / For Rent
As you might have seen on the docs page of the shortcode you can easily limit these listings to one or the other offer that is registered in WPCasa. By default
rent are available.
You can also limit the listings to any taxonomy term. The following example will only show properties in Marbella.
Or show only listings with the type Villa:
Number of Listings
By default the shortcode displays the number of listings page page that you set in your WordPress reading settings on WP-Admin > Settings > Reading. But of course you can change that with the
The panel is displayed right before the listings. It includes the number of found listings and the order dropdown to let users change it to their needs. But maybe you don’t like it or you don’t want the panel displayed for another reason.
The same for the pagination links that are display directly after the listings. You can optionally hide it if you like.
[wpsight_listings show_paging ="false"]
Sure, there are many more. Please have a look at the full list of parameters on Shortcode: [wpsight_listings].
You can flexibly combine them and show exactly the listings you want.