php - Change index feed appearance of custom post types for twentytwelve theme? (wordpress) -


is possible , how should done? custom post appears , works fine, , can customize permalink page index page stays same. tried making content-[posttype].php + single-[posttype].php along amending get_templatepart code single-[posttype].php filebut didn't have affect on appearance of custom post type when viewd in main index feed.

if want customise custom post type's archive page need create template called archive-[posttype].php, , in this, call content-[posttype].php template part have created.

for example if post type 'movies' create archive-movies.php , in call (assuming content-movies.php present):

<?php get_template_part( 'content', 'movies' ); ?> 

an invaluable reference when working out template files use 'official' wordpress template hierarchy page in codex: http://codex.wordpress.org/template_hierarchy


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -