In this post, you’ll came to know that how to create short code for custom post type with WordPress custom plugin.

Custom plugin has been created to display custom post type by adding short code just before individual page. Custom post type for FAQ with name webr_faq can also be created. You just need to add the shortcode [rep posttype=’webrfaq’] in your page and replace it with custom post type name.

Reference Source