[epl_listing_alerts_form] Shortcode
This feature allows you to output a subscriptions form on your pages and posts using a simple Shortcode. There are a variety of options available with this Shortcode in the Listing Alerts extension.
[epl_listing_alerts_form]
You can output the form by a specific listing type like this:
[epl_listing_alerts_form property_type="property"]
Usage
There are several options that may be specified using this syntax:
[epl_listing_alerts_form option1="value1" option2="value2"]
You can also print a list of listings in a template like so:
<?php echo do_shortcode('[epl_listing_alerts_form]'); ?>
Option Order
Note: The order of the options is important so order your options correctly to get the best result.
logged_in_title logged_in_description logged_out_title logged_out_description name property_type enable_ enable_name enable_mobile enable_email enable_website enable_epl_la_location enable_epl_la_bedrooms enable_epl_la_bathrooms enable_epl_la_price enable_epl_la_want_air_conditioning enable_epl_la_want_pool enable_epl_la_want_garage enable_epl_la_subscribe enable_epl_la_expand
Options
The following options are accepted:
logged_in_title
specify the title when the user is logged in. The default is what is specified in the extension settings:
[epl_listing_alerts_form logged_in_title="User Logged In Title"]
logged_in_description
specify the description when the user is logged in. The default is what is specified in the extension settings:
[epl_listing_alerts_form logged_in_title="User Logged in Description"]
logged_out_title
specify the title when the user is logged out. The default is what is specified in the extension settings:
[epl_listing_alerts_form logged_in_title="User Logged Out Title"]
logged_out_description
specify the description when the user is logged out. The default is what is specified in the extension settings:
[epl_listing_alerts_form logged_out_description="User Logged Out Description"]
name
unused:
[epl_listing_alerts_form name=""]
property_type
specify the listing type. The default is what is specified in the extension settings:
[epl_listing_alerts_form property_type=rental]
enable_
allows for additional custom fields to output settings. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_{FIELD_NAME}="property_field_name"]
enable_name
specify the first/last name fields to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_name=true]
enable_mobile
specify the mobile field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_mobile=true]
enable_email
specify the email field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_email=true]
enable_website
specify the website field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_website=true]
enable_epl_la_location
specify the location select field to display. The default is what is specified in the extension settings. Options:
- Array of location slugs
[epl_listing_alerts_form enable_epl_la_location=sorrento,sydney,perth]
enable_epl_la_bedrooms
specify the bedrooms select field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_bedrooms=true]
enable_epl_la_bathrooms
specify the bathroom select field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_bathrooms=true]
enable_epl_la_price
specify the price select field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_price=true]
This field is dynamic and will correctly display either a rental or property price range. The rent and price values displayed use the following filters from the Easy Property Listings Search Widget and can be adjusted.
- epl_listing_search_price_rental : Search Widget Filter
- epl_listing_search_price_sale : Search Widget Filter
enable_epl_la_want_air_conditioning
specify the air conditioning check box field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_want_air_conditioning=true]
enable_epl_la_want_pool
specify the pool check box field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_want_pool=true]
enable_epl_la_want_garage
specify the garage check box field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_want_garage=true]
enable_epl_la_subscribe
specify the subscribe checkbox field to display. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_subscribe=true]
enable_epl_la_expand
specify the style of the form either set to expanded or condensed. The default is what is specified in the extension settings. Options:
- true
[epl_listing_alerts_form enable_epl_la_expand=true]
Shortcode Options
'logged_in_title' => '', 'logged_in_description' => '', 'logged_out_title' => '', 'logged_out_description' => '', 'name' => '', 'property_type' => '', 'enable_' => '', 'enable_name' => '', 'enable_mobile' => '', 'enable_email' => '', 'enable_website' => '', 'enable_epl_la_location' => '', 'enable_epl_la_bedrooms' => '', 'enable_epl_la_bathrooms' => '', 'enable_epl_la_price' => '', 'enable_epl_la_want_air_conditioning' => '', 'enable_epl_la_want_pool' => '', 'enable_epl_la_want_garage' => '', 'enable_epl_la_subscribe' => '', 'enable_epl_la_expand' => '',
The order of the options is important with WordPress shortcodes.