• Resolved kumquat_s

    (@kumquat_s)


    I have created a child theme to go over the TwentyTen theme and have come across a small problem. On my site https://www.the-dutch-touch.com the latest posts are displayed as usual.

    Using the menu if you go to the competitions –> eredivisie –> news

    You can see only the posts that are in the eredivisie category. Can anyone explain why it repeats the extract and where I can get rid of this?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • In ‘archive.php’, do you have a line of code similar to this? –
    <?php template_pare(‘loop’, ‘index’); ?>

    If so, then you do not need to add any other code that will display data from the article.

    If you want to change the way the articles are displayed once you are viewing the archive then delete the line above and code away.

    You may also consider calling your file ‘taxonomy.php’ instead of ‘archive.php’. That way, you can have different displays for when a user is viewing your archives, or viewing artiles by category (which is actually what you are doing).

    Thread Starter kumquat_s

    (@kumquat_s)

    I don’t have an archive.php in my child theme. But in Twenty Ten there is this line

    get_template_part( ‘loop’, ‘archive’ ); ?>

    To be honest I want all posts displayed the same regardless of whether they are in a category or archive.

    Ok, so I’d suggest that you have an extra line of code in one of your files somewhere – you’ll be looking for either ‘the_content();’ or ‘the_excerpt();’. Probably in either ‘archive.php’, ‘loop.php’ or (if it exists) ‘loop-archive.php’.

    Thread Starter kumquat_s

    (@kumquat_s)

    Bingo. Found it in the loop. Cheers for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Category archive display the same as normal loop’ is closed to new replies.