In this code snippet we are exploring how we can create a shortcode to display custom post type. With this code snippet we are utilising WordPress shortcode API. What is WordPress Shortcode API The API enables plugin developers to create special kinds of content (e.g. forms, content generators) that users can attach to certain pages […]