Displaying Category (Catalog) with Shortcodes


To display any category on your WP online store with shortcode use:
[[category alias="CATEGORY_ALIAS" id="CATEGORY_ID"]]
where

  • CATEGORY_ALIAS category alias: some-products-category-name
  • CATEGORY_ID category ID: if CATEGORY_ALIAS is not specified and CATEGORY_ID is present – will use this value to determine category to display. Use one of those values – CATEGORY_ALIAS or CATEGORY_ID.
  • shownum number of the products to be shown
  • catalog_view Catalog Items view, can be ‘grid’ or ‘list’
  • grid_preview_size – Preview size (grid), size for product box in grid view
  • list_preview_size – Preview size (list), size for product box in list view
  • grid_vert_distance – Vertical distance (grid), vertical distance between 2 cells in grid view
  • grid_hor_distance – Horizontal distance (grid), horizontal distance between 2 cells in grid view
  • list_vert_distance – Vertical distance (list), vertical distance between 2 rows in list view
  • short_descr_size – Short description size (in lines)
  • hover_item_bg – Background when Hovering on product item (grid)
  • short_descr_color – Short Description text color, any valid color for CSS, for example “red” or “#ff0000″
  • price_color – Price color, any valid color for CSS, for example “red” or “#ff0000″
  • image_border_color – Product image border color, any valid color for CSS, for example “red” or “#ff0000″
  • title_color – Product title color, any valid color for CSS, for example “red” or “#ff0000″
  • show – parameter list you want to show for your product
    You can use: ‘shadow_border’, ‘short_descr_hide’, ‘catalog_image’, ‘title’, ‘price’, ‘more’, ‘add_to_cart’
  • exclude – parameter list you want to exclude from product view, same list as for show, use one of those two parameters

Displaying catalog with shortcodes example

Tagged with: ,
Posted in Display Products, Shortcodes, User Guide