[dms_get_number_of_results] Print

  • 0

[dms_get_number_of_results]

Use this shortcode to display the number of listings that match a specific term and type. It's great for showing dynamic counts of inventory, such as how many trucks, SUVs, or other vehicles are available that match a single term.

 

Example Usage:

[dms_get_number_of_results term="suv" type="car" singular="SUV available" plural="SUVs available"]

 

Return:

  • 3 SUVs available OR
  • 1 SUV available
Parameter Required Description
term ✅ Yes The term you want to get the number of matching listings for (e.g., suv, ford, red).
type ✅ Yes The slug for the listing type you want to target (e.g., car, boat, trailer).
singular ❌ No Text to display when only 1 result is found.
plural ❌ No Text to display when more than 1 result is found.

Was this answer helpful?

« Back