wordpress - Page Template for every custom post type -


i'm new in wordpress, wanted ask if it's bad practice if i'll create page template every custom post types? mean if have cpt [custom post type] different content, first cpt has images, 2nd cpt has image , text, last cpt, has slider, text , description.

because wanted create page template every type of cpt's have. bad practice? or there efficient , effective ways such things?

your answers highly appreciated. thanks!

it's better not that, not because it's server load, because you'll crazy if have issue. instead, use conditionals in same page. can read @ wp codex: conditional tags : taxonomies , pay attention is_tax , has_term tags.

this way, can use is_tag or has_term depending on approach, this

if( has_term( 'jazz', 'genre' ) ) { // } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -