WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem with categories and archive (4 posts)

  1. bastiaanvinke
    Member
    Posted 6 years ago #

    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

  2. bastiaanvinke
    Member
    Posted 6 years ago #

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

  3. moshu
    Member
    Posted 6 years ago #

    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...

  4. bastiaanvinke
    Member
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic