Create wp_query() Custom Shortcode with Parameters For Showing Post

0
2

Add this code in theme functions.php for Create wp_query() Custom Shortcode with Parameters For Showing Post

Shortcode is:

  • showpost=”2″ is Use for Number of post You want to show. if you not add show post in shortcode like as then show all posts.
  • post_type=”post” here You can add your custom post type in place of “post” like as:
  • Disable pagination : OR
  • For Showing full length content: OR