Shortcodes

Shortcodes created by a plugin are essential tools for visualizing tasks. They are the only means to insert widgets and design pages with specific behaviors.

Overview of the Shortcodes Tab

To access the Shortcodes tab, navigate through Motors Plugin Settings > Shortcodes:

To add Shortcodes to your pages, you can use any page builder, Default WordPress Page Builder (Gutenberg), Elementor, WP Bakery, etc.

Inventory

Adds an inventory element, used to create a listings (inventory, search results) page:

[motors_listing_inventory]
Sample of the Listings Page

Refer to this page to set up more preferences over this element:

Search Results Page

Add Listing

Adds a listing form, used to create a listing creation page:

[motors_add_listing_form]
The Result of 'Add Listing shortcode

Refer to these pages to set up more preferences over this element:

Listing Creation FormLayout Builder

Login/Registration

Adds login and registration form, used to create Login/Registration page:

[motors_login_page]
The result of 'Login/Registration' shortcode

Compare

Adds compare element, used to create a comparing page:

[motors_compare_page]
Sample of the Compare Page

Adds listing search bar. It can be used in your Landing or separate Search pages.

The result Listing Search shortcode
[motors_listing_search show_amount='yes' filter_fields='make,serie,ca-year']

"show_amount" - used for showing amount listings in each category

"filter_fields" - write category slug by comma separator to show filter fields

Icon Filter

Adds a special widget that enables icons to be filtered. It can be used in Landing or Special Search pages according to your needs.

The result of Icon Filter
[motors_listing_icon_filter title='Browse by Make' as_carousel='yes' filter_selected='make' columns='4' visible_items='5']

  • title - indicate the widget title

  • as_carousel - showing the widget as a carousel. Remove the parameter from the shortcode to get the default view

  • filter_selected - indicate the slug of the category to show its elements in icon filtering. For instance, 'make' has been entered in the example shortcode. It means in this filter logos of the car manufacturers will be displayed.

  • columns - indicate the number of columns

  • visible_items - indicate the number of visible items in the filter.

Listing Tabs

Adds a widget that the cars (listings) list will be displayed in different tabs. It can be useful to build a landing page:

The result of a 'Listing Tabs' shortcode
[motors_listings_tabs title='New/Used Cars' columns='4' popular_tab='yes' recent_tab='yes' featured_tab='yes']

  • title - enter the widget Title

  • columns - indicate the number of columns that need to be displayed

  • popular_tab - use 'yes' to enable the Popular Items tab in the widget or remove the parameter to hide it

  • recent_tab - use 'yes' to enable the Recent Items tab in the widget or remove the parameter to hide it

  • featured_tab - use 'yes' to enable the Featured Items tab in the widget or remove the parameter to hide it

Last updated

Was this helpful?