• Resolved bastiaanvinke

    (@bastiaanvinke)


    Hello,

    In my sidebar I have every category seperate with the relevant posts (thanks to JoyceD). My problem is that somehow the last category seems to appear in my title bar (header. Anyone got an any idea how to solve this problem?

    thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bastiaanvinke

    (@bastiaanvinke)

    I’m using the following code on http://www.bastiaanvinke.nl:

    <?php query_posts(‘category_name=columns&showposts=5’); ?>

    <?php single_cat_title(); ?>

    <?php while (have_posts()) : the_post(); ?>

    “><?php the_title(); ?>

    <?php endwhile; ?>

    <?php query_posts(‘category_name=gedichten&showposts=5’); ?>

    <?php single_cat_title(); ?>

    <?php while (have_posts()) : the_post(); ?>

    “><?php the_title(); ?>

    <?php endwhile; ?>

    <?php query_posts(‘category_name=liederen&showposts=5’); ?>

    <?php single_cat_title(); ?>

    <?php while (have_posts()) : the_post(); ?>

    “><?php the_title(); ?>

    <?php endwhile; ?>

    The <title> tag in the head section of your theme should be in the header.php file. So, why are you posting the sidebar code here?

    Check the code in the title tag…

    Thread Starter bastiaanvinke

    (@bastiaanvinke)

    I already solved the problem by adding some code to my sidebar.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with categories and archive’ is closed to new replies.