Category as Custom Page template
-
So I’m not very good with coding (go figure), but I needed to create a page template for a search plugin I’m using. I’ve just been guessing here and there to get what I want but for the life of me I can’t guess it.
Is there a way I can get a custom page template to look like this?
This is what I currently have from using the custom page template, but I can’t figure out how to get the slider to be removed or how to display tags and date on the posts.
<?php /* Template Name: Custom Page Example */ ?> <?php do_action('__before_main_wrapper' ); ##hook of the header with get_header ?> <?php do_action('TC_slider')?> <div id="main-wrapper" class="<?php echo implode(' ', apply_filters( 'tc_main_wrapper_classes' , array('container') ) ) ?>"> <div class="container" role="main"> <div class="<?php echo implode(' ', apply_filters( 'tc_column_content_wrapper_classes' , array('row' ,'column-content-wrapper') ) ) ?>"> <?php do_action( '__before_article_container' ); ##hook of left sidebar?> <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( TC_utils::tc_get_layout( TC_utils::tc_id() , 'class' ) , 'article-container' ) ) ) ?>"> <?php do_action( '__before_loop' );##hooks the header of the list of post : archive, search... ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?> <?php the_post(); ?> <?php do_action( '__before_article' ) ?> <article <?php tc__f( '__article_selectors' ) ?>> <?php do_action( '__loop' ); ?> </article> <?php do_action( '__after_article' ) ?> <?php endwhile; ?> <?php endif; ##end if have posts ?> <?php do_action( '__after_loop' );##hook of the comments and the posts navigation with priorities 10 and 20 ?> </div><!--.article-container --> <?php do_action( '__after_article_container' ); ##hook of left sidebar ?> </div><!--.row --> </div><!-- .container role: main --> <?php do_action( '__after_main_container' ); ?> </div><!--#main-wrapper"--> <?php do_action( '__after_main_wrapper' );##hook of the footer with get_get_footer ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Category as Custom Page template’ is closed to new replies.
