Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This shortcode is used to display list of products in the grid.

Attributes

Shortcode has several attributes:

  • class: additional CSS class name to add
  • columns: number of grid columns. The default is 3.
  • sort_column: column for sorting products. The default is ‘name’.
  • sort_order: articles sorting order. The default is ‘ASC’.
  • limit: number of articles per category limit. The default is 9.
  • group: limit products to the specific group (by group ID).

Products Sort Column

Sort column supports following values:

  • name: article name
  • ID: article ID
  • date: article publish date
  • comment_count: article comments count
  • rand: random sort
  • none: no sorting

Example

Shortcode:

[gdkob_products_grid limit="6" columns="3" sort_column="name" sort_order="ASC"]

Output:

0
0
547
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply