INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Archive Problem - Category Links

Archive Problem - Category Links

(OP)
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

RE: Archive Problem - Category Links

yes.  that is the cause

RE: Archive Problem - Category Links

(OP)
Wow, useful. A solution come with that comment?

RE: Archive Problem - Category Links

Quote:


**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?

answer: yes.
solution: make the tutorials children of all tutorials.
alternative solution: look at my answer to your last post, to which you have not responded.

RE: Archive Problem - Category Links

well, I'll stop trying to help you then.   

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close