Skip to content
Yehuda Tiram edited this page Aug 24, 2019 · 3 revisions

Welcome to the ATR Posts By Cat wiki!

This Wordpress plugin provide a shortcode for displaying posts. It meant to be easy to use and as versatile as possible.

It also provide a templating system (based on Gamajo Template Loader by Gary Jones Gamajo_Template_Loader).

Default options

  • post-type => post
  • taxonomy => category
  • posts_per_page => -1
  • terms => 1
  • full_content => -1
  • excerpt => 1
  • more_info => 1
  • pager => next_prev
  • atr-posts-cat-template =>
  • show-title => 1
  • link-title => 1
  • show-thumbnail => 1
  • link-thumbnail => 1
  • show-date => 0

Uses

[posts-list]

Will display posts from all categories

[posts-list terms='4,15,11,21,18,29,25']

Will display posts from categories with IDs 4,15,11,21,18,29,25

[posts-list post-type="product" taxonomy="product_cat" ]

Will display posts from all products categories.

Note the taxonomy="product_cat". You must define the taxonomy if you refer to a taxonomy that is not the default "category"

[posts-list terms='4,15' posts_per_page="2" ]

Will display posts from categories with IDs 4,15 with 2 posts in page and "Previous" "Next" pager