Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member Hitch - CP's Avatar
    Join Date
    Jun 2009
    Location
    London
    Posts
    120
    Member #
    19164
    Hey Guys,

    The problem can be seen on any of the category archive pages. See here: http://alihitch.com/.../all-tutorials/

    For some reason, even though the page is showing the 'all tutorials' category link, it is also displaying a link to the 'other' category. This is the same for all categories.

    Archive file code can be seen below. Anybody have any idea why this is happening?

    **NOTE: I had originally put the 'other' and 'html/css tutorials' category as children categories of 'all tutorials'. They are not children categories any more. Perhaps that is a cause?

    Code:
    <?php get_header(); ?>
    
    <div class="b-wrap">
    
        <section class="a-wrap">
        
        <?php the_post(); ?>  
       
        <?php if ( is_day() ) : ?>
                    
            <div class="a-year">
        
            <h2 class="page-title"><?php printf(get_the_time(get_option('date_format')) ) ?></h2>
            
            </div><!-- .a-year -->
                    
            <?php elseif ( is_month() ) : ?>
                        
                <div class="a-year">
            
                <h2 class="page-title"><?php printf(get_the_time('F Y') ) ?></h2>
                
                </div><!-- .a-year -->
                            
            <?php elseif ( is_year() ) : ?>
            
                <div class="a-year">
            
                <h2><?php printf(get_the_time('Y')) ?></h2>
                
                </div><!-- a-year -->
                
                <div class="clear"></div>
                            
            <?php elseif ( is_category() ) : ?>
            
                <div class="a-year">
            
                <h2><?php printf(the_category()) ?></h2>
                
                </div><!-- a-year -->
                                        
            <?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?>
            
                <h1 class="page-title"><?php _e( 'Blog Archives', 'your-theme' ) ?></h1>
            
        <?php endif; ?>
        
        <?php rewind_posts(); ?>
           
        <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
        
            <div id="nav-above" class="navigation">
            
            <div class="nav-previous">
                 <?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> Older posts', 'your-theme' )) ?>
            </div><!-- .nav-previous -->
            
            <div class="nav-next">
                 <?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&raquo;</span>', 'your-theme' )) ?>
            </div><!-- .nav-next -->
            
            </div><!-- #nav-above .navigation -->
            
        <?php } ?>  
        
        <?php while ( have_posts() ) : the_post(); ?>
    
            <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                    
                <div class="line"></div>
                    
                <h2 class="search <?php the_ID(); ?>"><a class="search-a no-border" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
                
                <time class="search-date">
                    <div class="left-date">
                        <div class="search-day d-<?php the_time('d') ?>"><?php the_time('d') ?></div>
                        <div class="search-month m-<?php the_time('m') ?>"><?php the_time('M') ?></div>
                    </div>
                    <div class="search-year y-<?php the_time('Y') ?>"><?php the_time('Y') ?></div>
                </time><!-- .search-date -->
    
                <?php include (TEMPLATEPATH . '/inc/meta-search.php' ); ?>
                
                <div class="clear"></div>
                
                <div class="entry">
    
                    <?php the_excerpt(); ?>
                    
                </div><!-- .entry -->
    
            </div>
    
        <?php endwhile; ?>  
    
        <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
        
            <div id="nav-below" class="navigation">
            
                <div class="nav-previous">
                <?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> Older posts', 'your-theme' )) ?>
                </div>
                
                <div class="nav-next">
                <?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&raquo;</span>', 'your-theme' )) ?>
                </div>
            
            </div><!-- #nav-below -->
            
        <?php } ?>
        
        </section><!-- .a-wrap -->
        
        <?php include ('asider-r.php'); ?>
        
        <div class="clear"></div>
    
    </div><!-- .b-wrap -->    
    
    <?php get_footer(); ?>

    Thanks,
    Ali
    Ali Hitch

    Portfolio & Tutorial Site
    www.alihitch.com

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:51 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com