Available Parameters

title: Title of this shortcode
parent: Parent category ID
numbers: Numbers of categories to show ( empty = all )
columns: Numbers of columns per row
orderby: ID, slug, count ( empty = default “drag&drop” order )
order: asc ( default ), desc
image_width: default = Catalog Images width in WooCommerce Settings
image_height: default = Catalog Images height in WooCommerce Settings
image_crop: yes / no, default = Catalog Images hard crop in WooCommerce Settings
show_title: yes (default) / no : Show category title
show_count: yes (default) / no : Show category count

Example 1

return all product categories

[prima_product_categories title="Product Categories"]

Product Categories

Example 2

return all product categories in 3 columns per row

[prima_product_categories title="Product Categories" columns="3"]

Product Categories

Example 3

return four product categories in 4 columns per row

[prima_product_categories title="Product Categories" numbers="4" columns="4"]

Product Categories

Example 4

return four product categories in 4 columns per row and hide category count

[prima_product_categories title="Product Categories" numbers="4" columns="4" show_count="no"]

Product Categories

Example 5

return four product categories in 4 columns per row and hide category title

[prima_product_categories title="Product Categories" numbers="4" columns="4" show_title="no"]

Product Categories

Example 6

return four product categories in 4 columns per row and ordered by slug name

[prima_product_categories title="Product Categories" numbers="4" columns="4" orderby="slug"]

Product Categories

Example 7

return four product categories in 4 columns per row and ordered by category count

[prima_product_categories title="Product Categories" numbers="4" columns="4" orderby="count"]

Product Categories

Example 8

return four product categories in 4 columns per row and custom image size (portrait style)

[prima_product_categories title="Product Categories" numbers="4" columns="4" image_width="125" image_height="200"]

Product Categories