Below, you’ll find a detailed guide on how to add the Showcase IDX Real Estate Search Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Showcase IDX Real Estate Search Plugin shortcodes not to show or not to work correctly.
Before starting, here is an overview of the Showcase IDX Real Estate Search Plugin and the shortcodes it provides:
"Showcase IDX Real Estate Search is a feature-packed plugin designed to enhance your real estate website. It integrates powerful IDX search, providing your users with the most accurate, up-to-date property listings."
- [showcaseidx]
- [showcaseidx_hotsheet]
- [showcaseidx_custom]
- [showcaseidx_widget_login]
- [showcaseidx_widget_register]
- [showcaseidx_widget_230]
- [showcaseidx_widget_465]
- [showcaseidx_widget_700]
- [showcaseidx_widget_930]
- [showcaseidx_widget_updated]
- [showcaseidx_widget_contact]
- [showcaseidx_widget_agent]
- [showcaseidx_widget_office]
- [showcaseidx_widget_featured]
- [showcaseidx_widget_hotsheet]
- [showcaseidx_widget_omnibox]
- [showcaseidx_widget_slideshow]
- [showcaseidx_signin]
Showcase IDX Real Estate Search [showcaseidx] Shortcode
The Showcase IDX shortcode is a powerful tool that integrates real estate listings into your WordPress site. This shortcode displays the Showcase IDX application, replacing it with a link to all listings if SEO is enabled. It provides a seamless browsing experience, keeping visitors engaged with your site’s content.
Shortcode: [showcaseidx]
Examples and Usage
Basic Example – The shortcode below is a simple usage of the ‘showcaseidx’ shortcode. It’s used without any additional parameters, hence, it will display all the listings by default.
[showcaseidx]
Advanced Examples
The following example showcases the use of the shortcode with additional parameters. Here, we are passing the ‘type’ parameter to specify the type of property listings we want to display. In this case, it’s ‘residential’.
[showcaseidx type="residential"]
In the next example, we are using two parameters ‘type’ and ‘location’. The ‘type’ parameter is set to ‘commercial’, and the ‘location’ parameter is set to ‘New York’. This will display commercial property listings located in New York.
[showcaseidx type="commercial" location="New York"]
Lastly, we have an example where we are using three parameters ‘type’, ‘location’, and ‘price’. The ‘type’ parameter is set to ‘residential’, the ‘location’ parameter is set to ‘Los Angeles’, and the ‘price’ parameter is set to ‘500000’. This will display residential property listings located in Los Angeles that are priced at $500,000.
[showcaseidx type="residential" location="Los Angeles" price="500000"]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx', 'showcaseidx_show_app');
Shortcode PHP function:
function showcaseidx_show_app($scParams) {
$seoPlaceholder = '<a href="' . showcaseidx_base_url() . '/sitemap">View all listings</a>';
return showcaseidx_generate_app($seoPlaceholder, NULL, NULL, $scParams = $scParams);
}
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_hotsheet] Shortcode
The Showcase IDX shortcode is a powerful tool that enables the display of custom, agent, or office hotsheets on your website. This shortcode allows customization of the hotsheet type, name, and visibility of map and search features. It also sets limits and identifies specific agents or offices. If a custom hotsheet is chosen, it fetches SEO listings for enhanced visibility.
Shortcode: [showcaseidx_hotsheet]
Parameters
Here is a list of all possible showcaseidx_hotsheet shortcode parameters and attributes:
type
– Determines the type of hotsheet, can be ‘custom’, ‘agent’, or ‘office’.name
– Specifies the name of the hotsheet for ‘custom’ type.hide_map
– If true, the map on the hotsheet is hidden.hide_search
– If true, the search bar on the hotsheet is hidden.agent_id
– Specifies the agent’s ID for ‘agent’ type hotsheet.office_id
– Specifies the office’s ID for ‘office’ type hotsheet.limit
– Sets the maximum number of listings to display on the hotsheet.
Examples and Usage
Basic example – Display a custom hotsheet with a specified name
[showcaseidx_hotsheet type="custom" name="My Custom Hotsheet" /]
Advanced examples
Display a custom hotsheet with a specified name, hiding the map and search functionalities
[showcaseidx_hotsheet type="custom" name="My Custom Hotsheet" hide_map="true" hide_search="true" /]
Display an agent’s hotsheet by referencing the agent’s id, limiting the number of listings shown to 10
[showcaseidx_hotsheet type="agent" agent_id="123" limit="10" /]
Display an office’s hotsheet by referencing the office’s id, hiding the map functionality
[showcaseidx_hotsheet type="office" office_id="456" hide_map="true" /]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_hotsheet]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_hotsheet', 'showcaseidx_show_hotsheet');
Shortcode PHP function:
function showcaseidx_show_hotsheet($scParams) {
$shortcodeAttrs = shortcode_atts(array(
'type' => 'custom', // custom, agent, office
'name' => '', // name of hotsheet; only referenced for type=custom
'hide_map' => false,
'hide_search' => false,
'agent_id' => null,
'office_id' => null,
'limit' => null
), $scParams);
$jsonEncoded = json_encode(array('hotsheet' => $shortcodeAttrs));
// Get SEO listings for custom hotsheets
if (isset($scParams['name'])) {
echo "<noscript>";
echo showcaseidx_post(get_option('showcaseidx_api_v2_host') . "/seo/hotsheet_listings",
array("hotsheet_name" => $scParams['name'], "api_key" => get_option('showcaseidx_api_key')));
echo "</noscript>";
}
return showcaseidx_generate_app("{$shortcodeAttrs['type']} hotsheet", NULL, $jsonEncoded);
}
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_custom] Shortcode
The Showcase IDX plugin shortcode, ‘showcaseidx_custom’, is designed to generate a custom IDX real estate search app. It allows users to set search restrictions and name their search. The ‘restrict’ and ‘name’ attributes can be customized to filter property listings. The ‘restrict’ attribute defines the search parameters, while ‘name’ assigns a unique identifier to the search. The shortcode then returns a custom IDX app based on these inputs.
Shortcode: [showcaseidx_custom]
Parameters
Here is a list of all possible showcaseidx_custom shortcode parameters and attributes:
restrict
– DQL restrictions for the IDX displayname
– search name for the IDX display
Examples and Usage
Basic example – Display a preset showcase with specific restrictions and name.
[showcaseidx_custom restrict="city='New York'" name="NYC Showcase" /]
Advanced examples
Display a showcase with multiple restrictions, such as city and property type, and a specific name. This will show a showcase of only single-family homes in New York.
[showcaseidx_custom restrict="city='New York' AND propertyType='single family'" name="NYC Single Family Homes" /]
Another advanced usage is to display a showcase with multiple restrictions, like city and price range, and a specific name. This will show a showcase of properties in New York within a certain price range.
[showcaseidx_custom restrict="city='New York' AND price BETWEEN 100000 AND 500000" name="NYC Affordable Homes" /]
These examples demonstrate the flexibility of the ‘showcaseidx_custom’ shortcode. By altering the ‘restrict’ and ‘name’ parameters, you can create a wide variety of property showcases on your WordPress website.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_custom]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_custom', 'showcaseidx_custom');
Shortcode PHP function:
function showcaseidx_custom($attrs, $content = null) {
$attrs = shortcode_atts(array(
'restrict' => NULL,
'name' => NULL
), $attrs);
$legacy_conf = array(
'restrictDQL' => $attrs['restrict'],
'searchName' => $attrs['name'],
'preSelectedAttributes' => explode( "\n", wp_strip_all_tags( $content ) )
);
return showcaseidx_generate_app("", NULL, NULL, NULL, json_encode($legacy_conf));
}
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_login] Shortcode
The Showcase IDX Widget Login shortcode is a powerful tool for user authentication. It generates a login form for users to access certain features or content. This shortcode calls the function showcaseidx_widget_login(), which in turn invokes the showcaseidx_generate_app function with “/login” as an argument. This function generates an application route to the login screen.
Shortcode: [showcaseidx_widget_login]
Examples and Usage
Basic example – A simple usage of the ‘showcaseidx_widget_login’ shortcode without any parameters. This will generate a login form for the Showcase IDX application.
[showcaseidx_widget_login /]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_login]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_login', 'showcaseidx_widget_login');
Shortcode PHP function:
function showcaseidx_widget_login() { return showcaseidx_generate_app(null, "/login"); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_register] Shortcode
The Showcase IDX plugin shortcode, ‘showcaseidx_widget_register’, is designed to generate an application on the “/register” page. This shortcode facilitates user registration on your site.
Shortcode: [showcaseidx_widget_register]
Examples and Usage
Basic example – A straightforward usage of the ‘showcaseidx_widget_register’ shortcode, this example generates an application for user registration.
[showcaseidx_widget_register /]
Advanced examples
Embedding the registration widget within a specific page or post by passing the ID of the page or post as a parameter. This allows for the creation of a registration widget on a designated page or post.
[showcaseidx_widget_register id="123" /]
Using the shortcode to generate a registration widget and specifying the redirect URL after successful registration. This can be useful to guide users to a specific page after they have registered.
[showcaseidx_widget_register redirect_url="/welcome" /]
Combining both the ID and redirect URL parameters for a more complex implementation. This example generates a registration widget on a specific page and redirects the user to a specified URL after successful registration.
[showcaseidx_widget_register id="123" redirect_url="/welcome" /]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_register]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_register', 'showcaseidx_widget_register');
Shortcode PHP function:
function showcaseidx_widget_register() { return showcaseidx_generate_app(null, "/register"); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_230] Shortcode
The Showcase IDX Widget 230 shortcode is used to generate a specific widget on your WordPress site. This shortcode calls a function that returns the ‘widgets/230’ from the Showcase IDX plugin. The output is a tailored real estate widget, enhancing user experience.
Shortcode: [showcaseidx_widget_230]
Examples and Usage
Basic Example – The shortcode presented below will generate a widget related to the Showcase IDX plugin. The shortcode will call the function ‘showcaseidx_widget_230’ which will return a widget from the directory ‘widgets/230’.
[showcaseidx_widget_230 /]
Advanced Examples
Creating a shortcode that includes parameters allows for more flexibility. Here are two examples of how you can modify the ‘showcaseidx_widget_230’ shortcode to include parameters:
In the first example, the shortcode will generate a widget and include the parameters ‘id’ and ‘title’. This allows the widget to first try to load by ‘id’, but if not found, it will try to load by ‘title’.
[showcaseidx_widget_230 id="1" title="My Widget" /]
In the second example, the shortcode will generate a widget and include the parameters ‘id’, ‘title’, and ‘color’. This gives you even more control over the widget’s appearance and functionality.
[showcaseidx_widget_230 id="1" title="My Widget" color="blue" /]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_230]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_230', 'showcaseidx_widget_230');
Shortcode PHP function:
function showcaseidx_widget_230() { return showcaseidx_generate_widget('widgets/230'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_465] Shortcode
The ‘showcaseidx_widget_465’ shortcode from Showcase IDX plugin enables the display of a specific real estate widget. It calls the ‘showcaseidx_generate_widget’ function which generates the widget with the ID ‘465’.
Shortcode: [showcaseidx_widget_465]
Parameters
Here is a list of all possible showcaseidx_widget_465 shortcode parameters and attributes:
showcaseidx_widget_465
– The function name associated with the shortcode.showcaseidx_generate_widget
– The function called to generate the widget.'widgets/465'
– The specific widget directory or path used by the function.
Examples and Usage
Basic example – A simple usage of the ‘showcaseidx_widget_465’ shortcode. This will generate and display the widget with the ID of 465 on your WordPress site.
[showcaseidx_widget_465]
Advanced examples
Using the shortcode to display the ‘showcaseidx_widget_465’ with additional parameters. In this example, we’ve added a ‘style’ parameter, which allows you to customize the appearance of the widget. We’ve also added a ‘class’ parameter, which can be used to add custom CSS classes to the widget.
[showcaseidx_widget_465 style="width:100%; height:500px;" class="custom-class"]
In this next advanced example, we’re using the ‘showcaseidx_widget_465’ shortcode with a ‘category’ parameter. This allows you to display only properties from a specific category in the widget. We’ve also added a ‘limit’ parameter to restrict the number of properties displayed to 10.
[showcaseidx_widget_465 category="condos" limit="10"]
Please note that the actual parameters available may vary depending on the configuration of your Showcase IDX plugin. Always refer to the plugin’s documentation for the most accurate information.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_465]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_465', 'showcaseidx_widget_465');
Shortcode PHP function:
function showcaseidx_widget_465() { return showcaseidx_generate_widget('widgets/465'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_700] Shortcode
The Showcase IDX Widget 700 shortcode is a functional tool that generates a specific widget. This shortcode calls the function ‘showcaseidx_widget_700’ which returns the widget from the ‘widgets/700’ directory. This allows for the easy integration and display of this widget in your WordPress site.
Shortcode: [showcaseidx_widget_700]
Examples and Usage
Basic example – A simple implementation of the showcase IDX plugin shortcode. It calls the function ‘showcaseidx_generate_widget’ with the parameter ‘widgets/700’ to generate a specific widget on your page.
[showcaseidx_widget_700 /]
Advanced examples
Using the shortcode to display a specific widget by referencing the widget ID. The widget will load based on the ID provided.
[showcaseidx_widget_700 id="widgets/701" /]
Using the shortcode to display a specific widget by referencing the widget title. If the widget with the specified ID is not found, it will try to load by the title.
[showcaseidx_widget_700 title="New Widget" /]
Using the shortcode to display a specific widget by referencing both ID and title. The widget will first try to load by ID, but if not found, it will try to load by title.
[showcaseidx_widget_700 id="widgets/702" title="Another Widget" /]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_700]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_700', 'showcaseidx_widget_700');
Shortcode PHP function:
function showcaseidx_widget_700() { return showcaseidx_generate_widget('widgets/700'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_930] Shortcode
The Showcase IDX Widget 930 shortcode is a useful tool in WordPress. It generates a specific widget, identified as ‘930’, via the Showcase IDX plugin. This shortcode calls the ‘showcaseidx_generate_widget’ function, which in turn, retrieves the widget from ‘widgets/930’.
Shortcode: [showcaseidx_widget_930]
Parameters
Here is a list of all possible showcaseidx_widget_930 shortcode parameters and attributes:
showcaseidx_widget_930
– function name for generating the widget'widgets/930'
– path to the specific widget to be generated
Examples and Usage
Basic example – Utilizing the shortcode to display a widget by referencing the widget ID.
[showcaseidx_widget_930]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_930]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_930', 'showcaseidx_widget_930');
Shortcode PHP function:
function showcaseidx_widget_930() { return showcaseidx_generate_widget('widgets/930'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_updated] Shortcode
The Showcase IDX plugin shortcode, ‘showcaseidx_widget_updated’, is designed to generate an updated widget. This widget displays recently updated listings on your website. In the PHP code, the function ‘showcaseidx_widget_updated’ returns the ‘showcaseidx_generate_widget’ function with ‘widgets/updated’ as a parameter.
Shortcode: [showcaseidx_widget_updated]
Examples and Usage
Basic example – The basic usage of the ‘showcaseidx_widget_updated’ shortcode is to display the updated widget from Showcase IDX. This shortcode does not require any parameters to function.
[showcaseidx_widget_updated]
Advanced examples
While the ‘showcaseidx_widget_updated’ shortcode does not inherently support parameters, you can modify the function that the shortcode calls to accept parameters. Here are a few examples of how you might do this:
Display the updated widget with a custom title and subtitle. In this example, the ‘title’ and ‘subtitle’ parameters are added to the ‘showcaseidx_generate_widget’ function. If these parameters are not provided, the function defaults to using ‘Updated Properties’ for the title and ‘Check out these recently updated listings’ for the subtitle.
function showcaseidx_widget_updated($atts) {
$atts = shortcode_atts(array(
'title' => 'Updated Properties',
'subtitle' => 'Check out these recently updated listings'
), $atts);
return showcaseidx_generate_widget('widgets/updated', $atts);
}
add_shortcode('showcaseidx_widget_updated', 'showcaseidx_widget_updated');
Once you’ve added these parameters to the function, you can use them in the shortcode like this:
[showcaseidx_widget_updated title="My Custom Title" subtitle="My Custom Subtitle"]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_updated]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_updated', 'showcaseidx_widget_updated');
Shortcode PHP function:
function showcaseidx_widget_updated() { return showcaseidx_generate_widget('widgets/updated'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_contact] Shortcode
The Showcase IDX Widget Contact shortcode is a powerful tool in WordPress. It allows you to add a contact widget directly to your site. This shortcode calls the ‘showcaseidx_widget_contact’ function, which generates a contact widget. This widget can be used to enhance user interaction and engagement.
Shortcode: [showcaseidx_widget_contact]
Examples and Usage
Basic example – A simple way to use the shortcode for showcasing a contact widget on your WordPress page.
[showcaseidx_widget_contact]
Advanced examples
Use the shortcode to display a contact form with specific parameters. In this example, we’re adding a ‘title’ parameter to customize the title of the contact form, and a ‘button_text’ parameter to customize the text of the submit button.
[showcaseidx_widget_contact title="Contact Us" button_text="Send Message"]
Another advanced usage can be to control the visibility of certain form fields. Here, we’re using the ‘show_phone_field’ and ‘show_message_field’ parameters to decide whether to display the phone and message fields or not.
[showcaseidx_widget_contact show_phone_field="false" show_message_field="true"]
Please note that the actual parameters available may depend on the functionality provided by the ‘showcaseidx_widget_contact’ shortcode and the ‘showcaseidx_generate_widget’ function.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_contact]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_contact', 'showcaseidx_widget_contact');
Shortcode PHP function:
function showcaseidx_widget_contact() { return showcaseidx_generate_widget('widgets/contact'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_agent] Shortcode
The Showcase IDX plugin shortcode, ‘showcaseidx_widget_agent’, generates an agent widget. This widget displays agent-specific data, including listings. The PHP function ‘showcaseidx_widget_agent()’ calls ‘showcaseidx_generate_widget()’ to create the agent widget.
Shortcode: [showcaseidx_widget_agent]
Examples and Usage
Basic example – The following shortcode displays the agent widget without any additional parameters.
[showcaseidx_widget_agent]
Advanced examples
Adding attributes to the shortcode allows you to customize the display of the agent widget. In the following example, we’re adding two parameters: ‘id’ and ‘title’. The widget will first try to load the agent by the given ID, but if not found, it will try to load by the title.
[showcaseidx_widget_agent id="123" title="John Smith"]
In another advanced usage, we can use the ‘show_listings’ parameter to control whether the agent’s listings are displayed. If ‘show_listings’ is set to ‘true’, the widget will display the agent’s listings; if ‘false’, it won’t.
[showcaseidx_widget_agent id="123" show_listings="true"]
Remember that the actual parameters available may vary depending on the specific setup of your Showcase IDX plugin and the data available in your real estate listing system.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_agent]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_agent', 'showcaseidx_widget_agent');
Shortcode PHP function:
function showcaseidx_widget_agent() { return showcaseidx_generate_widget('widgets/listing/agent'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_office] Shortcode
The Showcase IDX Widget Office shortcode is a dynamic feature that generates a widget for office listings. Its function is to display property listings associated with a specific office.
Shortcode: [showcaseidx_widget_office]
Examples and Usage
Basic Example – The basic usage of the showcase-idx plugin shortcode would be to use it without any parameters. This will generate and display a widget for the office listings on your WordPress site.
[showcaseidx_widget_office]
Advanced Examples
For more advanced usage, the shortcode can accept various parameters to customize the output. For instance, you can specify the number of listings to display and the order in which they appear.
Here, we’re using the ‘count’ parameter to limit the number of office listings displayed to 5 and the ‘order’ parameter to display them in ascending order based on the listing ID:
[showcaseidx_widget_office count=5 order='ASC']
Another example could be to display listings from a specific city. In this case, we’re using the ‘city’ parameter to display office listings from ‘New York’:
[showcaseidx_widget_office city='New York']
Note: These examples assume that the shortcode supports these parameters. Please refer to the plugin’s documentation for a complete list of supported parameters and their usage.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_office]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_office', 'showcaseidx_widget_office');
Shortcode PHP function:
function showcaseidx_widget_office() { return showcaseidx_generate_widget('widgets/listing/office'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_featured] Shortcode
The Showcase IDX Featured Widget shortcode is a powerful tool that displays featured listings on your website. This shortcode calls the ‘showcaseidx_widget_featured’ function, which generates a widget showing featured listings. This function retrieves data from ‘widgets/listing/featured’, ensuring fresh content.
Shortcode: [showcaseidx_widget_featured]
Examples and Usage
Basic example – The Showcase IDX widget can be added to any post or page using the ‘showcaseidx_widget_featured’ shortcode. This will display the featured listings on your website.
[showcaseidx_widget_featured /]
Advanced examples
Adding parameters to the shortcode allows you to customize the display. For instance, you can specify the number of listings to show and the order in which they appear.
[showcaseidx_widget_featured number="5" order="desc" /]
In this example, the ‘number’ parameter is set to ‘5’, which means that the widget will display the five most recent featured listings. The ‘order’ parameter is set to ‘desc’, which means that the listings will be ordered from newest to oldest.
You can also use the ‘category’ parameter to display listings from a specific category.
[showcaseidx_widget_featured category="condos" /]
In this example, the ‘category’ parameter is set to ‘condos’, which means that the widget will only display featured listings in the ‘condos’ category.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_featured]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_featured', 'showcaseidx_widget_featured');
Shortcode PHP function:
function showcaseidx_widget_featured() { return showcaseidx_generate_widget('widgets/listing/featured'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_hotsheet] Shortcode
The Showcase IDX Widget Hotsheet shortcode is a powerful tool for displaying a tailored property listing. It generates a widget that presents a hotsheet, or a list of hot properties.
Shortcode: [showcaseidx_widget_hotsheet]
Examples and Usage
Basic example – The following shortcode displays a hotsheet widget by referencing a specific name.
[showcaseidx_widget_hotsheet name="Featured Properties" /]
Advanced examples
Using the shortcode to display a hotsheet widget with multiple parameters. This example specifies a name and adds additional parameters for customization.
[showcaseidx_widget_hotsheet name="Featured Properties" limit="10" sort="price_desc" /]
In this example, the shortcode displays a hotsheet widget with a specific name, limits the number of properties to 10, and sorts them in descending order by price.
Here’s another advanced example where the shortcode is used to display a hotsheet widget with a specific name and adds a filter to only show properties from a specific city.
[showcaseidx_widget_hotsheet name="City Properties" filter="city:New York" /]
In this case, the shortcode will display a hotsheet widget named “City Properties” and will only show properties that are located in New York.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_hotsheet]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_hotsheet', 'showcaseidx_widget_hotsheet');
Shortcode PHP function:
function showcaseidx_widget_hotsheet($scParams) { return showcaseidx_generate_widget("widgets/listing/hotsheet?name=$scParams"); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_omnibox] Shortcode
The Showcase IDX plugin shortcode, ‘showcaseidx_widget_omnibox’, generates an omnibox widget. This widget allows users to perform property searches directly from any page.
Shortcode: [showcaseidx_widget_omnibox]
Examples and Usage
Basic example – A simple usage of the shortcode to display the omnibox widget on your page
[showcaseidx_widget_omnibox]
Advanced examples
Using the shortcode with additional parameters to customize the omnibox widget. In this example, we are adding a ‘theme’ and ‘layout’ parameter to the shortcode. The ‘theme’ parameter can be used to apply a specific theme to the widget, and the ‘layout’ parameter can be used to specify the layout of the widget.
[showcaseidx_widget_omnibox theme="dark" layout="horizontal"]
In this next advanced example, we are adding a ‘location’ parameter to the shortcode. This can be used to specify a default location for the omnibox widget.
[showcaseidx_widget_omnibox location="New York"]
Finally, we can combine multiple parameters to further customize the omnibox widget. In this example, we are using the ‘theme’, ‘layout’, and ‘location’ parameters together.
[showcaseidx_widget_omnibox theme="light" layout="vertical" location="Los Angeles"]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_omnibox]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_omnibox', 'showcaseidx_widget_omnibox');
Shortcode PHP function:
function showcaseidx_widget_omnibox() { return showcaseidx_generate_widget('widgets/omnibox'); }
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_widget_slideshow] Shortcode
The Showcase IDX plugin shortcode, ‘showcaseidx_widget_slideshow’, enables you to display a slideshow on your website. It uses the ‘name’ and ‘limit’ attributes to customize the slideshow.
Shortcode: [showcaseidx_widget_slideshow]
Parameters
Here is a list of all possible showcaseidx_widget_slideshow shortcode parameters and attributes:
name
– The unique identifier for the slideshow widgetlimit
– The maximum number of slides to display
Examples and Usage
Basic example – Showcasing a specific slideshow widget by its name.
[showcaseidx_widget_slideshow name="Featured Properties" /]
With the above shortcode, the ‘showcaseidx_widget_slideshow’ will display the slideshow widget named “Featured Properties”. The ‘name’ attribute is used to specify the exact slideshow to be displayed.
Advanced examples
Displaying a certain number of slides in a specific slideshow widget.
[showcaseidx_widget_slideshow name="Featured Properties" limit=5 /]
The above shortcode demonstrates an advanced usage of the ‘showcaseidx_widget_slideshow’ shortcode. Here, we have added a ‘limit’ attribute to the shortcode. This attribute is used to control the number of slides that will be displayed from the “Featured Properties” slideshow. In this case, only the first 5 slides will be displayed.
Displaying a slideshow widget without specifying the number of slides.
[showcaseidx_widget_slideshow name="Featured Properties" /]
In this example, the ‘showcaseidx_widget_slideshow’ shortcode is used without the ‘limit’ attribute. This means that all slides in the “Featured Properties” slideshow will be displayed.
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_widget_slideshow]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode('showcaseidx_widget_slideshow', 'showcaseidx_widget_slideshow');
Shortcode PHP function:
function showcaseidx_widget_slideshow($scParams) {
$shortcodeAttrs = shortcode_atts(array(
'name' => '',
'limit' => null
), $scParams);
$name = $shortcodeAttrs['name'];
$limit = $shortcodeAttrs['limit'];
return showcaseidx_generate_widget("widgets/slideshow?name=$name&limit=$limit");
}
Code file location:
showcase-idx/showcase-idx/2/config.php
Showcase IDX Real Estate Search [showcaseidx_signin] Shortcode
The Showcase IDX plugin shortcode ‘showcaseidx_signin’ is designed to generate a user authentication form. It uses the ‘showcaseidx_build_shortcode’ function to build the shortcode. This function takes in two parameters, ‘type’ and ‘allowed’. The ‘type’ is set to ‘authform’, which refers to the authentication form. The ‘allowed’ parameter is an array that contains the allowed attributes for the shortcode. The function ‘showcase_retrieve_widget’ retrieves the widget based on the ‘type’ and ‘attrs’ parameters. The retrieved widget is then rendered using the ‘showcase_render_widget_for_shortcode’ function.
Shortcode: [showcaseidx_signin]
Examples and Usage
Basic example – A simple usage of the ‘showcaseidx_signin’ shortcode to display the authentication form on a page.
[showcaseidx_signin /]
Advanced examples
Customizing the ‘showcaseidx_signin’ shortcode by passing an array of allowed parameters. This can be useful when you want to limit the attributes that can be used with the shortcode.
add_shortcode( 'showcaseidx_signin', showcaseidx_build_shortcode( 'authform', array('id', 'title') ) );
Using the shortcode to display a specific authentication form by referencing an ID. This is useful when you have multiple forms and want to display a specific one.
[showcaseidx_signin id=2 /]
Using the shortcode to display an authentication form by referencing a title. This is useful when you don’t know the ID of the form, but you know its title.
[showcaseidx_signin title='My Custom Form' /]
PHP Function Code
In case you have difficulties debugging what causing issues with [showcaseidx_signin]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode( 'showcaseidx_signin', showcaseidx_build_shortcode( 'authform' ) );
Shortcode PHP function:
function showcaseidx_build_shortcode( $type, $allowed = array() ) {
return function ( $attrs ) use ( $type, $allowed ) {
$attrs = shortcode_atts( $allowed, $attrs, 'showcaseidx_' . $type );
$response = showcase_retrieve_widget( $type, $attrs );
return showcase_render_widget_for_shortcode($response);
};
}
Code file location:
showcase-idx/showcase-idx/3/shortcodes.php
Conclusion
Now that you’ve learned how to embed the Showcase IDX Real Estate Search Plugin shortcodes, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.
Leave a Reply