i know how to define custom post template vai plugins very easily but i want without plugins how can i define custom post template for particular category post.
say like i have one category "members" under this category have ten post. so i want when show those member post that time show custom template.
see bellow code from twentytwelve theme category.php file
<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
/* Include the post format-specific template for the content. If you want to
* this in a child theme then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
endwhile;
twentytwelve_content_nav( 'nav-below' );
?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
see in above code say get_template_part( 'content', get_post_format() );
and see get_template_part( 'content', 'none' )
now i want when "members" category post will open it will one custom page.. like content-members.php
file, so i think code will be like that get_template_part( 'content', 'members' )
so how can define in category page members category post will open content-members.php file