How to Create Short Code Using Custom Post type

I am New To WordPress Plugin Development. I want to Create Short Code using Custom Post Type Method

function baztag_func( $atts, $content = “” ) {
return “content = $content”;
}
add_shortcode( ‘baztag’, ‘baztag_func’ );

Read more here:: How to Create Short Code Using Custom Post type

Leave a Reply

Your email address will not be published. Required fields are marked *