About
This plugin is developed for the RE Collective website. It provides a shortcode to display “Properties” or “Rental” post types in a 2 x N grid, where N > 0.
The Property and Rental are Custom Post Types generated by the Easy Property Listings (EPL) plugin.
A demo of this plugin can be found in test-astra/epl-plugin-tests/
The shortcode is:
[ivr_show_properties type="post_type (required)" status="ppty_status (required)" row="n" (optional, default=3)]
This plugin accepts the following parameters:
- type (required) = property type (examples: property, rental…)
- status (required) = property status (examples: current, leased, sold, etc….)
- row (optional) = number of rows
Key Operations
- At the ‘ini’ hook, registers these css and js files:
- /public/css/ivr-rec-style.css
- /public/js/ivr-rec-script.js
- At the ‘wp_enqueue_scripts’ hook, enqueue the above files.
- Register the shortcode using the function add_shortcode(‘ivr_show_properties’, ‘ivr_rec_show_properties’);
Points to Note
- When CSS files have the same name in two different plugins, they will conflict with each other. Therefore they must use different names. The same applies to JS file. (To be checked)
Folders and Files
ivr-rec-show-properties.php
- the main file of the plugin. It triggers the required functions at the various action hooks mentioned above.
uninstall.php
- Currently do nothing. It is created for completeness for the plugin.
inc/loader.php
- when called, it loads in all files in the ‘inc’ folder.
- but excludes itself and index.php
inc/ivr-rec-show-properties-functions.php
- defines all functions called by ivr-rec-carousel-properties.php
public/css/ivr-rec-style.css
- the main CSS file.
public/js/ivr-rec-script.js
- currently is empty.
Version History & Download
| Ver. | Rel Date | Remark |
| 1.5.1 | 2023-02-15 | v1.5.1 (2023-02-15) * Added: if the row parameter n is a string and cannot be casted to an integer, then row is set to the default value of 3. v1.5.0 (2023-02-14) * Changed: the grid size is changed from 2C x 3R to 2C x nR where n is given in the shortcode parameter. If not set, it then takes the default value of 3. |
| 1.4.1 | 2022-02-28 | v1.4.1 (2022-02-28) * The version for go-live on 1-mar-2022. * Thousand separator changed back from space to comma. v1.4.0 (2022-01-23 @1834) * Added: Price meta values. * Added: images for ‘Leased’ and ‘Sold’ stickers. * Changed: Replaced Title with Address as per TDO. v1.3.2 (2021-12-19 @2348) * Fixed: > if ‘Property’ and ‘Current’, orderby = list_date (fallback post_date) > if ‘Property’ and ‘Sold’, orderby = sold_date (fallback post_date) > if ‘Rental’ and ‘Current’, orderby = list_date (fallback post_date) > if ‘Rental’ and ‘Leased’, orderby = available_date (fallback post_date) v1.3.1 (2021-12-17 @1928) * New: Car total now includes open space carparks. * Fixed: Change title margin-top from 66px to 35px. * Fixed: Applied CSS keeping image aspect ratio at 1.5:1 (or 3:2). – Using the “height = 0 and padding-top = %” approach. v1.3.0 (2021-12-09 @0056) * Added warning message: “No Properties Found…!”. |
| 1.2.1 | 2021-10-23 | 1. Added <a> tag to Title to point to its page. 2. Renamed the script and style file names. 3. Changed the versions no. of script and style. |
| 1.0.0 | 2021-08-23 | First release |
