Display CPT News in Group of 3 using shortcode WordPress

By | December 7, 2014

Display record in group of specific count is some time difficult while you are going to display it with blockquote, ul etc Tag instead of simple Div tag. because in this case it is required that Opening tag must be closed to display it in well format without miss configured it structure.

In Below example i created Custom post type cpt_news with taxonomy cat_news and display it in group of 3 using blockquote tag with registering shortcode to use it in sidebar by custom text widget.

Leave a Reply

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