Loading the content... Loading depends on your connection speed!

Product Categories

Example 1

return top level product categories

[prima_code][prima_categories parent=”0″ title=”Categories” image_width=”75″ image_height=”75″]
[/prima_code]

[prima_categories title=”Categories” image_width=”75″ image_height=”75″ parent=”0″]

Example 2

return child of belt category (with ID=8)

[prima_code][prima_categories child_of=”8″ title=”Belt Categories” image_width=”180″ image_height=”180″ name=”alwaysshow” image_default=”http://demo1.wpflexishop.com/wp-content/themes/wpflexishop/images/noimage.png”][/prima_code]

[prima_categories child_of=”8″ title=”Belt Categories” image_width=”180″ image_height=”180″ name=”alwaysshow” image_default=”http://demo1.wpflexishop.com/wp-content/themes/wpflexishop/images/noimage.png”]

Example 3

return four top level product categories with landscape size, with yellow button and category name will be shown in hover state

[prima_code][prima_categories image_width=”170″ image_height=”120″ parent=”0″ number=”4″ name=”hovershow” button=”alwaysshow” button_color=”yellow” button_text=”Click Me”][/prima_code]

[prima_categories image_width=”170″ image_height=”120″ parent=”0″ number=”4″ name=”hovershow” button=”alwaysshow” button_color=”yellow” button_text=”Click Me”]

Example 4

return four top level product categories with landscape size, with blue button. auto slider is enabled with 4 number of slides to display at once

[prima_code][prima_categories image_width=”170″ image_height=”120″ parent=”0″ button=”alwaysshow” button_color=”blue” button_text=”%title%” slider=”4″ slider_auto=”yes”][/prima_code]

[prima_categories image_width=”170″ image_height=”120″ parent=”0″ button=”alwaysshow” button_color=”blue” button_text=”%title%” slider=”4″ slider_auto=”yes”]

Example 5

return four top level product categories with portrait size, with custom colors

[prima_code][prima_categories image_width=”120″ image_height=”180″ parent=”0″ name=”alwaysshow” name_bg=”pink” name_color=”white” title=”You can use hex color here” title_bg=”green” title_color=”yellow”][/prima_code]

[prima_categories image_width=”120″ image_height=”180″ parent=”0″ name=”alwaysshow” name_bg=”pink” name_color=”white” title=”You can use hex color here” title_bg=”green” title_color=”yellow”]

[hr]

Product Categories shortcode is an easy way to create nice product category list. It has many parameters and highly customizable.

List of parameters:

image_width = category image width (default: 150)
image_height = category image height (default: 150)
image_space = margin between category image (default: 10)
image_default = default category image url
title = product category section’s title
title_color = text color of product category section’s title
title_bg = background color of product category section’s title
number = maximum number of category to return. default is to return them all.
orderby = id, count, name (default), slug, term_group, none
order = ASC (default), DESC
hide_empty = Whether to show empty category (default: 0)
child_of = get all children of this category id
parent = Get direct children of this category (only category who’s explicit parent is this value). If 0 is passed, only top-level categories are returned
include = only include the categories detailed in a comma-separated list by unique ID, in ascending order
exclude = exclude one or more categories from the results. This parameter takes a comma-separated list of categories by unique ID, in ascending order
button = show button ( no, alwaysshow, hovershow )
button_text = button text, you can use %title% tags here (default: view)
button_color = white (default), blue, green, black, yellow, red
name = show category name ( no, alwaysshow, hovershow )
name_color = text color of category name
name_bg = background color of category name
slider = number of slides to display at once, use “no” to disable slider (default), and use number to show slider, see example
slider_auto = make slideshow change automatically ( yes / no )
slider_speed = in ms, duration of time slide transitions will occupy (default = 1500 )
slider_pause = in ms, the duration between each slide transition (default = 400)