Timeline for How to show custom post template from single page?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 18, 2013 at 19:42 | answer | added | epilektric | timeline score: 0 | |
Aug 18, 2013 at 19:42 | vote | accept | pagol | ||
Aug 18, 2013 at 19:15 | answer | added | Michelle | timeline score: 4 | |
Aug 18, 2013 at 19:12 | comment | added | pagol | this is in single.php file... <?php get_header(); ?> <div class="contentarea cf"> <?php while ( have_posts() ) : the_post(); ?> <h3><?php the_title(); ?></h3> <?php if ( is_category( 'members' ) ) { get_template_part( 'content', 'members' ); } else { get_template_part( 'content', 'common' ); } ?> <?php endwhile; ?> </div> <?php get_footer(); ?> | |
Aug 18, 2013 at 19:08 | comment | added | Vinod Dalvi | Where are you adding the above code? Can you show me the whole code? | |
Aug 18, 2013 at 19:06 | history | asked | pagol | CC BY-SA 3.0 |