wordpress: display custom post type of a category by making a function so that you can call this function on a template and show related post type only.

I am also using a limit so it will be easy to get the variable in quantity.

Here ‘masonry-portfolio-categories’ is a taxonomy and ‘masonry-portfolio’ is a post type.

Pass the $ppp for postperpage and $cat for category slug.

 

Leave a Reply