[invp_archive_vehicle]

Outputs a single archive vehicle in an <article> element. Designed to help any theme show an archive of vehicles. Not intended to be used outright. Inventory Presser uses this shortcode on the_content hook to provide better output than a theme that doesn’t know anything about our custom post type.

Visit the class reference at https://inventorypresser.com/docs/reference/classes/inventory_presser_shortcode_archive_vehicle/

Parameters

  • show_titles
    • boolean
    • Toggles whether titles are shown.
    • Default value: false
  • style
    • string. “a” or “b”.
    • Change the look of the listings.
      • a. Condensed, 3 column using flexbox. See screenshot-6.png.
      • b. Large photo, attribute table and buttons to the right. See screenshot-1.png.
    • Default value: a

Screenshots

Screenshot 6. This screenshot shows a vehicle archive on the Twenty Twenty theme before any customization. An add-on plugin for AutoCheck vehicle history reports places a button near every vehicle.
Screenshot 1. This is a vehicle post archive showing post title, full size featured image, price, vehicle attribute table, carfax button, and link to vehicle post single.