CPT Ajax load more provide shortcode with many parameters that given blow.
- id :
Default = unique()
The Unique ID is used for multiple instance in single page - post_type :
Default = 'post'
Specify the post type name by comma - template :
Default = 'default'
Customize the listing behavior with the template - post_status :
Default = 'publish'
The Comma separated Post Status - category :
Default = null
The Comma separated category list by slug - category__and :
Default = null
The Comma separated category list that include by ID - category__not_in :
Default = null
The Comma separated category list that exclude by ID - tag :
Default = null
The Comma separated tags list by slug - tag__and :
Default = null
The Comma separated tags that include by ID - tag__not_in :
Default = null
The Comma separated tags that exclude by ID - taxonomy :
Default = null
The Comma separated taxonomy list by slug - taxonomy_terms :
Default = null
Custom taxonomy name - taxonomy_operator :
Default = 'IN'
Compare taxonomy terms with IN or NOT IN - taxonomy_relation :
Default = 'AND'
Multiple condition “AND” or “OR” between taxonomies - order :
Default = 'DESC'
Show posts by Ascending or Descending Order. - order_by :
Default = 'date'
Order posts by date, ID, Title etc.. - init_load :
Default = '6'
How many posts will show initially - posts_per_page :
Default = '6'
Post Per page when ajax fetch records - scroll :
Default = false
Set True if you want infinite window scroll - grid :
Default = '1'
How many grids for lists - item_class :
Default = 'cpt-alm-item'
Class of the single item - container_class :
Default = 'cpt-alm-wrapper'
The main wrapper class of the ajax load more - button_text :
Default = 'Load More'
Label of the button - button_color :
Default = '#6bd298'
The hexa color code of the Load more button - loading_style :
Default = 'normal'
Loader style when Ajax is Loading data
Example
[cpt_ajax_load_more post_type="post" template="default" posts_per_page="5"]