Shortcodes Blc

Shortcodes:

blocksy_posts - Available arguments:
  1. post_type – needed post type (comma separated format if more than one post type). Note: If multiple post types provided, the customizer settings of the first one will be respected.
    • Example: book,movie,song
    • Default value: post
  2. limit – Amount of posts to display per page.
    • Default value: 5
  3. orderby – Sorting logic.
    • Possible values: post_date, comment_count, rand. Everything accepted in WP_Query orderby
    • Default value: post_date
  4. order – Sorting order.
    • Possible values: DESC, ASC Everything accepted in WP_Query order
    • Default value: DESC.
  5. term_ids – ID of the terms to display posts from. In comma separated format, different taxonomies can be mixed.
    • Example: 23,15,38
    • Default value: null
  6. exclude_term_ids — ID of the terms to exclude the posts from. Same format as term_ids.
  7. post_ids – Specific IDs of the posts to display. In comma separated format
    • Example: 12,13,18
    • Default value: null
  8. has_pagination – Display or hide the pagination
    • Possible values: yes, no
    • Default value: yes
  9. ignore_sticky_posts – Ignore or display the sticky posts
    • Possible values: yes, no
    • Default value: no
  10. view – Display shortcode as a slider or as an archive.
    • Possible values: slider/archive
    • Default value: archive
  11. slider_image_ratio – When view: slider, decide which ratio the images will have.
    • Possible values: 1/1, 2/1, 16/9, 4/3, 1/2, 9/16, 3/4
    • Default value: 2/1
  12. slider_autoplay – Enable or disable slider autoplay for slider.
    • Possible values: number/no
    • Default value: no
  13. no_results – Decide how to handle the no posts state.
    • Possible values: 404/skip
      • 404 – output the regular 404 template
      • skip – output nothing.
    • Default value: 404
  14. filtering – Enables the filter options from the Post Types Extra extension
    • Possible values: yes/no
      • yes – displays the filters
      • no – hides the filters
    • Default value: no.
  15. class – Add a custom class to the main container wrapper.
Usage examples:

blocksy_posts limit="4" – met hoekhaakjes aanweerszijde: [ …… ]

Rank Math

Basisinstellingen & Stappen voor Optimalisatie Rank Math is een krachtige SEO-plugin voor…

blocksy_posts limit=”2″ has_pagination=”no”

Rank Math

Basisinstellingen & Stappen voor Optimalisatie Rank Math is een krachtige SEO-plugin voor…

Posts from certain categories

blocksy_posts term_ids="11" – met hoekhaakjes aanweerszijde: [ …… ]

How to find a WordPress term’s ID:
To find a taxonomy term’s ID, browse to the taxonomy edit screen. Hover over a term, then look for its tag_ID value in the browser window’s status bar at the bottom.

Different custom post type

blocksy_posts post_type="cpts"

Variatie: blocksy_posts post_type="cpts" limit="8" has_pagination="no"

https://creativethemes.com/blocksy/docs/post-types/custom-post-types/

Gebuik plugin: CPT UI

Cpt 4

Lorem ipsum is a dummy or placeholder text commonly used in graphic design, publishing, and web development. Its purpose is…

CPT Post 3

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi rhoncus malesuada risus ac condimentum. In porta felis vestibulum semper volutpat.…

CPT post 2

Vivamus iaculis dapibus urna id porttitor. Nam non enim rutrum, mattis justo vitae, lobortis lorem. Vestibulum at euismod metus. Suspendisse…

CPT post 1

Quisque feugiat, nunc et efficitur mollis, arcu nibh bibendum quam, a accumsan leo velit eu neque. Quisque venenatis tincidunt bibendum.…

Posts with content before the listing

blocksy_posts]<h3>My posts</h3>[/blocksy_posts

My posts

Rank Math

Basisinstellingen & Stappen voor Optimalisatie Rank Math is een krachtige SEO-plugin voor…

Slider view

blocksy_posts view="slider" limit="3"

Important Notice!

The blocksy_posts slider shortcode does not display its styling out of the box, if WooCommerce isn’t loaded. This is due to performance reasons. It can easily be enabled back, without installing WooCommerce by integrating the following snippet inside of the functions.php file of your Child theme.