gdkob_selected_cats_articles

This shortcode is used to display list of articles by category in a grid.

Attributes

Shortcode has several attributes:

  • class: additional CSS class name to add
  • category: one or more categories ID’s to show. This field is required.
  • columns: number of grid columns. The default is 3.
  • sort_column: column for sorting articles. The default is ‘name’.
  • sort_order: articles sorting order. The default is ‘ASC’.
  • limit: number of articles per category limit. The default is 4.
  • show_votes: show votes total for each post. The default is ‘yes’.
  • show_all: show links to open all posts in specific category.

Articles 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_selected_cats_articles category="5111,5113" columns="2" sort_column="date" sort_order="DESC" limit="3" show_votes="yes" show_more="yes"]

Output:

0
0
59
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply