Inventory Presser is easy to design for. Dozens of template and conditional tags are defined in includes/template-tags.php.
Conditional Tags
- invp_have_carfax_report()
- invp_is_carfax_one_owner()
- Answers the question, “is this vehicle designated a “one owner” by Carfax?
- invp_is_sold()
- invp_is_used()
- invp_is_wholesale()
Template Tags
- invp_get_the_availability()
- invp_get_the_beam()
- Boat field. A boat’s width at its widest point.
- invp_get_the_body_style()
- invp_get_raw_book_value()
- Returns the raw book value price as a number and therefore no string formatting or dollar sign.
- invp_get_the_book_value()
- Returns the higher of the two book value prices among NADA Guides and Kelley Blue Book.
- invp_get_the_carfax_icon_html()
- Outputs Carfax button HTML or empty string if the vehicle is not eligible or does not have a free report.
- invp_get_the_carfax_url_report()
- invp_get_the_color()
- Returns the exterior color of the vehicle.
- invp_get_the_description()
- invp_get_the_down_payment()
- invp_get_the_drive_type()
- Returns the drive type, or a description of how many driven wheels are on the vehicle.
- invp_get_the_edmunds_style_id()
- invp_get_the_engine()
- invp_get_the_fuel()
- invp_get_the_fuel_economy_value()
- Makes retrieving a fuel economy data point from metadata easier.
- invp_get_the_hull_material()
- Boat field.
- invp_get_the_interior_color()
- invp_get_the_length()
- Boat field. Returns the length of the boat.
- invp_get_the_location()
- Returns the address where this vehicle is located. Address may contain line break characters. The location taxonomy terms contain full street addresses in the term description.
- invp_get_the_location_sentence()
- Creates a short sentence identifying the dealership address where this vehicle is located. If there is only one term in the locations taxonomy containing vehicles, this method returns an empty string.
- invp_get_the_make()
- invp_get_the_model()
- invp_get_the_msrp()
- invp_get_the_odometer()
- Returns the odometer formatted as a number with comma separators if it is numeric. Returns any other non-zero value without any formatting. Adds the $append value to any return value but an empty string.
- invp_get_the_options()
- invp_get_the_payment()
- invp_get_the_payment_frequency()
- invp_get_the_photo_count()
- Returns the number of images attached to the vehicle post.
- invp_get_the_photo_url()
- invp_get_the_photos()
- Fill arrays of thumb and large <img> elements and URLs to simplify the use of of vehicle photos.
- invp_get_raw_price()
- invp_get_the_price()
- Returns the vehicle’s price. Returns the price as a dollar amount except when it is zero. Returns the $zero_string when the price is zero.
- invp_get_the_stock_number()
- invp_get_the_title_status()
- invp_get_the_transmission()
- invp_get_the_transmission_speeds()
- invp_get_the_trim()
- invp_get_the_type()
- invp_get_the_VIN()
- Returns the vehicles VIN.
- invp_get_the_year()
- invp_get_the_youtube_url()
- Returns this vehicle’s YouTube video URL or empty string.