WAIT...

Blog

Blog Shortcode:

Displays Custom post types and ordinary WordPress blog posts in various view types. Shortcode is flexible and full of settings. It is easy to change shortcode settings.

[ main_query_posts ]

Shortcode with parameters:

[ main_query_posts post_type="post" limit="6" uk_grid_medium="4" template="fashion_blog" gutter="medium" sortby="comment_count" sort_order="ASC" extra_class="my-extra-class" pagination="off" grid_parallax="500" ]

You can also write text into shortcode:

[ main_query_posts ]Taxonomy from custom post type. Should be a name like...[ /main_query_posts ]

Shortcode settings:


'post_type'             =>   'post',   // Any post type like "portfolio", "event", "testimonial", "slideshow", "product" - WooCommerce ready. Default is "post".
'limit'                 =>   '6',      // Number of maximum posts to show for first and every next load. Integer.
'uk_grid_small'         =>   '1',      // Affects device widths of 480px and higher. Maximum columns max=6, min=1, default=2.
'uk_grid_medium'        =>   '2',      // Affects device widths of 768px and higher. Maximum columns max=6, min=1, default=2.
'uk_grid_large'         =>   '',       // Affects device widths of 960px and higher. Maximum columns max=6, min=1, default=2.
'uk_grid_xlarge'        =>   '',       // Affects device widths of 1220px and higher. Maximum columns max=6, min=1, default=2.
'gutter'                =>   '',       // Available params: collapse, small, medium, large.
'animation_cls'         =>   '',       // Class to add when the element is in view. Available params: slide-top, slide-bottom, slide-left, slide-right, fade, shake, scale, scale-up, scale-down.
'animation_delay'       =>   '0',      // Integer. Delay time in ms. (150, 300, 500, 800).
'animation_repeat'      =>   'false',  // true or false.
'cat'                   =>   '',       // Category id separated by comma.
'category_name'         =>   '',       // Category. Should be a name like 'fashion' or string of terms separated by comma. For 'portfolio' CPT use 'portfolio-type', 'portfolio_category' taxonomies.
'taxonomy'              =>   '',       // Any Taxonomy from custom post type. Should be a name like 'fashion', enter only one taxonomy name. ('people', 'emotions', 'animals'). For 'event' CPT - use 'event_cat' taxonomy, for 'product' CPT (WooCommerce) - use 'product_cat' taxonomy. 
'taxonomy_term'         =>   '',       // Any Taxonomy terms from custom post type. Should be a name like 'fashion' or string of terms separated by comma. For 'event' CPT - use 'event_cat' taxonomy terms, for 'product' CPT (WooCommerce) - use 'product_cat' taxonomy terms.
'sortby'                =>   'date',   // Options: title, date, author, rand, modified, comment_count. Default state is date.
'sort_order'            =>   'DESC',   // ASC or DESC.
'pagination'            =>   'ajax',   // "on", "ajax", "both" - will show ajax and ordinary pagination together, "off" to disable pagination.
'grid_parallax'         =>   '',       // Set an integer without comma and quotes (150, 200, 300, etc.), disabled by default, default value is '150' if set not a number. Not supported with ajax pagination.
'template'              =>   'post',   // 'post' is default template for photographer blog. (Blog tmpl: 'music_blog', 'fashion_blog', 'literary_blog', 'art_blog', 'night_blog', 'photo_blog';  Portfolio tmpl:'music', 'fashion', 'literary', 'art', 'night', 'event'). Also it can be used for WooCommerce products.
'extra_class'           =>   '',       // Enter extra class for custom styling.
'exclude'               =>   '',       // Id separated by comma.
'author'                =>   ''        // Set an integer, author id='25'.

Subscribe

Email *

Follow me

Get in touch