• Resolved jeremydsmith

    (@jeremydsmith)


    Hi, I can’t get rid of this annoying Archive for the message
    Any one know how please? It seemed to happen when I changed the name of my category. When I changed it back to what it used to be it still looked like this. Any ideas?

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Check in your archive.php or category.php you should find something like
    Archive for the '<?php single_cat_title(); ?>' Category

    Thread Starter jeremydsmith

    (@jeremydsmith)

    The archive.php contains this. It is 8216 that is causing the problem.
    Can anyone let me know what I should alter to stop this happening for this page/category?

    thanks

    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'kubrick'), single_cat_title('', false)); ?></h2>
    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    <h2 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'kubrick'), single_tag_title('', false) ); ?></h2>
    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></h2>
    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></h2>
    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></h2>
    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class="pagetitle"><?php _e('Author Archive', 'kubrick'); ?></h2>
    <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    <h2 class="pagetitle"><?php _e('Blog Archives', 'kubrick'); ?></h2>
    <?php } ?>
    Thread Starter jeremydsmith

    (@jeremydsmith)

    Hmmmm for some reason the above is replacing my Archive for the ‘%s&#8217 with %s

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't get rid of Archive for the Category message’ is closed to new replies.