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.

Here are the available shortcodes:

Inventory

Adds an inventory element, used to create a listings page:

[motors_listing_inventory]

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

Listings PageListing Info Card

Add Listing

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

[motors_add_listing_form]

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]

Compare

Adds compare element, used to create a comparing page:

[motors_compare_page]

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

[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.

[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:

[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