A shortcode lets you do nifty things with very little effort. Think of a shortcode as a shortcut to add features to your website that would normally require lots of complicated computer code and technical ability.
WordPress Support


These shortcodes can be pasted into pages and posts to display products, clubs, utility menus, and registration forms with flexible custom settings.

  • Product Button

    Displays a simple add to cart button for an individual SKU.

    Example

    [vs_product_button id="id" sku="sku" icon="false" label="Add to Cart" quantity="1"]

    These attributes may be added as parameters to the shortcode.

    ID

    String

    Id of the product in VineSpring. Found at the end of the URL address when editing a product.

    SKU

    String

    SKU on the product in VineSpring.

    Icon

    Boolean: true / false

    Whether to display a cart icon before the label on the button.

    Label

    String

    The label text displayed on the button.

    Quantity

    Number

    The quantity of the product added to the cart.

  • Product

    Displays a single SKU with product details and purchase form.

    Example

    [vs_products tag="tag" layout="layout" heading="heading" total="3"]

    These attributes may be added as parameters to the shortcode.

    Tag

    String

    The product tag in VineSpring

    Layout

    Enum: vertical / horizontal

    Default: vertical

    Heading

    String

    The heading text.

    Total

    Number

    Total number of products displayed.

  • Product List

    Displays a product list.

    Example

    [vs_products tag="tag" layout="layout" heading="heading" total="3"]

    These attributes may be added as parameters to the shortcode.

    Tag

    String

    The VineSpring product tag. Shows all products with tag. For all products, use ‘all’ or don’t include the tag attribute.

    Layout

    Enum

    Allows you to use different layouts for displaying products. If no template attribute, uses the default product list. Template options enumerated:

    • product-list-layout-1-col
    • product-list-layout-2-col
    • product-list-layout-3-col
    • product-list-layout-4-col
    • product-list-layout-custom

    Heading

    String

    Displays custom heading text in a h2 tag above the products. You can add your own heading above the shortcode and leave out the heading attribute.

    Total

    Number

    The total number of products displayed.

  • Utility Menu

    Displays the utility menu with links to account, cart, etc. Useful for developers in displaying the utility menu at a different location than the default. Styling can be customized via CSS.

    Example

    [vs_utility_menu format="icons"]

    These attributes may be added as parameters to the shortcode.

    Format

    Enum: icons / icons-labels / labels

    Allows customization of button display: only icons, both icons and text labels, or only labels.

  • Clubs

    Displays the clubs and details with the layout selected on the Clubs settings admin page.

    Example

    [vs_clubs]

    There are no attribute parameters.

  • Register

    Displays a registration form. Visibility can be toggled for address, comments, date of birth, phone, and source fields. Source field options inherit from the Register admin page settings.

    Example

    [vs_register address="false" comments="false" dob="false" phone="false" source="false"]

    These attributes may be added as parameters to the shortcode.

    Address

    Boolean: true / false

    Whether the address fields display.

    Comments

    Boolean: true / false

    Whether the comments field displays.

    DOB (Date of Birth)

    Boolean: true / false

    Whether the date of birth field displays.

    Source

    Boolean: true / false

    Whether the source field displays.