mbenesch
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: Hide "archives" on category pageI actually have both archive and category templates in my theme.
This is my archive page template
<?php /* Template Name: Archives */ ?> <?php get_header() ?> <?php $page_sidebar = 'full'; $spanContent = 0; $spanSidebar = 0; $check_page_sidebar = get_post_meta($post->ID, 'isc_page_style', true); if($check_page_sidebar == 'full'){$page_sidebar = 'full';} if($check_page_sidebar == 'left'){$page_sidebar = 'left';} if($check_page_sidebar == 'right'){$page_sidebar = 'right';} if($page_sidebar == 'left' or $page_sidebar == 'right'){ $spanContent = 1; if($page_sidebar == 'left'){$spanSidebar = 1;} if($page_sidebar == 'right'){$spanSidebar = 2;} } ?> <!-- Part 1: Wrap all page content here --> <section class="wrap"> <!-- Begin page content --> <div class="container <?php if($spanSidebar == 1 or $spanSidebar == 2){echo 'full';} ?>"> <div class="row-fluid"> <?php if($spanSidebar == 1){ ?> <div class="span4"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Widget Area") ) : ?> <h6>Sidebar Widget Area</h6> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <?php endif; ?> </div> <?php } ?> <?php if($spanContent == 1){ ?> <div class="span8 filler"> <?php } ?> <div class="back-white"> <?php the_post() ?> <?php the_content() ?> <div class="clearfix"></div> <div class="row-fluid"> <div class="span6"> <h3><?php _e('Most Recent Posts:','gb_framework'); ?></h3> <div class="blog-archive-page"> <ul> <?php wp_get_archives('type=postbypost&limit=10'); ?> </ul> </div> </div> <div class="span6"> <h3><?php _e('Archives by Categories:','gb_framework'); ?></h3> <div class="blog-archive-page"> <ul> <?php wp_list_categories('title_li='); ?> </ul> </div> </div> </div><!-- Row page --> <div class="clearfix"></div> <div class="row-fluid"> <div class="span6"> <h3><?php _e('Archives by Month:','gb_framework'); ?></h3> <div class="blog-archive-page"> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </div> </div> <div class="span6"> <h3><?php _e('Archives by Year:','gb_framework'); ?></h3> <div class="blog-archive-page"> <ul> <?php wp_get_archives('type=yearly'); ?> </ul> </div> </div> </div><!-- Row page --> <div class="clearfix"></div> <h3><?php _e('Archives by Tags:','gb_framework'); ?></h3> <?php wp_tag_cloud(); ?> </div> <?php if($spanContent == 1){ ?> </div> <?php } ?> <?php if($spanSidebar == 2){ ?> <div class="span4"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Widget Area") ) : ?> <h6>Sidebar Widget Area</h6> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <?php endif; ?> </div> <?php } ?> </div><!-- Row page --> </div><!-- Content page --> </section><!-- Wrap page --> <?php get_footer() ?> </blockquote> This is my category page templtae <blockquote><?php get_header() ?> <?php $checkOpt = get_option('onevox'); $spanContent = 1; $spanSidebar = 2; if(isset($checkOpt['is_blog_style']) and $checkOpt['is_blog_style'] == '2'){ $spanContent = 1; $spanSidebar = 1; }else{ if(isset($checkOpt['is_blog_style']) and $checkOpt['is_blog_style'] == '3'){ $spanContent = 0; $spanSidebar = 0; } } ?> <!-- Part 1: Wrap all page content here --> <section class="wrap"> <!-- Begin page content --> <div class="container <?php if($spanSidebar == 1 or $spanSidebar == 2){echo 'full';} ?>"> <div class="row-fluid"> <?php if($spanSidebar == 1){ ?> <div class="span4"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Widget Area") ) : ?> <h6>Blog Widget Area</h6> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <?php endif; ?> </div> <?php } ?> <?php if($spanContent == 1){ ?> <div class="span8 filler"> <?php } ?> <div id="list"> <div id="contente"> <?php while ( have_posts() ) : the_post() ?> <?php get_template_part( 'functions/post/type', get_post_format() ); ?> <?php endwhile ?> </div> <div class="clearfix"></div> </div> <div id="nav-below" class="navigation"> <?php if(function_exists('wp_simple_pagination')) { wp_simple_pagination(); }else{ ?> <div class="navleft"><?php next_posts_link('<i class="icon-double-angle-left"></i> '.__('Older Posts','gb_framework').'', '0') ?></div> <div class="navright"><?php previous_posts_link(''.__('Newer Posts','gb_framework').' <i class="icon-double-angle-right"></i>', '0') ?></div> <?php } ?> <div class="clearfix"></div> </div> <?php if($spanContent == 1){ ?> </div> <?php } ?> <?php if($spanSidebar == 2){ ?> <div class="span4"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Widget Area") ) : ?> <h6>Blog Widget Area</h6> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <?php endif; ?> </div> <?php } ?> </div><!-- Row page --> </div><!-- Content page --> </section><!-- Wrap page --> <?php get_footer() ?>Forum: Fixing WordPress
In reply to: Hide featured image from postsHey thank you very much that worked perfectly!
Viewing 2 replies - 1 through 2 (of 2 total)