A shortcode that allows themes that do not provide a content-archive template to show a vehicle archive.

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

Parameters

This shortcode is just a wrapper for a query_posts() call. The values are simply passed along as core WordPress query variables.

View Page

  • meta_key
    • string
    • Default value: The default sort field set at Vehicles > Options
  • order
    • string
    • Default value: The default sort order set at Vehicles > Options
  • orderby
    • string
    • Default value: The default sort field set at Vehicles > Options
  • paged
    • integer
    • Default value: 1
  • posts_per_page
    • integer
    • Default value: The value set at Settings > Reading > Blog pages show at most X posts
  • post_status
    • string
    • Default value: ‘publish’

Screenshot

The [invp_archive] shortcode creates vehicle listings on the popular OceanWP theme