Skip to main content

Shortcode Guidelines

Car Rental Manager provides shortcodes to embed booking forms, vehicle listings, search interfaces, and customer dashboards on any WordPress page or post.

Booking Form

Displays the rental booking form with configurable layout styles and options.

[mpcrbm_booking]
ParameterValuesDefaultDescription
forminline, horizontal, verticalinlineLayout style of the booking form
progressbaryes, nonoShow step progress indicator
show_categoryyes, nonoInclude category filter in the form
show_vehicleyes, noyesDisplay vehicle selection step
classString(empty)Additional CSS class names for custom styling

Vehicle Listing

Displays your fleet in grid or list view with filtering options by category, order, and pagination.

[rent-list type="car"]
ParameterValuesDefaultDescription
typecarcarPost type to list
stylegrid, listgridDisplay layout style
orderasc, descdescSort order by title
categorySlug(empty)Filter by category slug (e.g., suv, sedan)
posts_per_pageInteger(all)Number of vehicles to display
show_paginationyes, nonoEnable pagination

Search Form

Provides a search input with optional category dropdown. Results update dynamically via AJAX on supported themes.

[mpcrbm_search]
ParameterValuesDefaultDescription
placeholderStringSearch vehicles…Placeholder text for the search input
stylecompact, fullcompactSearch bar style
show_categoryyes, nonoShow category dropdown alongside search

Category Filter

Renders a category selector as a dropdown, checkbox list, or button group. Combine with [rent-list] for interactive filtering.

[mpcrbm_categories]
ParameterValuesDefaultDescription
styledropdown, list, buttonsdropdownDisplay style of the category filter

Customer Dashboard

Displays the customer dashboard showing past and upcoming bookings. Requires the user to be logged in.

[mpcrbm_dashboard]

My Account

Renders the account management area for profile and booking history. Requires the user to be logged in.

[mpcrbm_my_account]

Locations

Displays available pickup and drop-off locations for customer reference.

[mpcrbm_locations]

Extra Services

Shows extra services available for add-on purchase during the rental booking process.

[mpcrbm_extras]

FAQ Section

Renders the FAQ section for customer self-service queries.

[mpcrbm_faq]

Best Practices

Placement Tips

  • Place only one booking form shortcode per page to avoid conflicting instances
  • Use a dedicated page for the fleet listing with [rent-list] for better SEO
  • Always test shortcodes in the WordPress customizer or a staging site before going live
  • Combine shortcodes with Gutenberg blocks or page builders for advanced layouts
  • Wrap shortcodes in custom containers if you need additional CSS styling