• Resolved oceanofp

    (@oceanofp)


    I’ve been using Headspace, SEO and In A Series plugins along with a few others on WP 2.5.1. The other plugins don’t involve a posts title other than the Recent Posts and Most Popular Posts plugins. Disabling Headspace and In A Series plugins hasn’t had any affect on removing the double post title on my older post pages. I’ve tried deleting the custom fields on the edit pages, but after saving, they all return. I’m not sure if that could be causing the double titles or not and I don’t know how to eliminate it if it is. My front page displays the proper single post title. This issue only affects the titles of my previous post entries/archives. It makes these pages look amateurish and I would like to correct it to where only one post title displays on the pages. My site is https://www.oceanofperspectives.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • Whats in your archive.php file?

    Thread Starter oceanofp

    (@oceanofp)

    I’m not code literate, so here is everything in my darkwater-1 theme’s archive.php

    <?php get_header(); ?>

    <div id=”container”>

    <?php if(have_posts()): ?>

    <h2 class=”archive_head”>Entries Tagged as ‘<?php echo single_cat_title(); ?>'</h2>

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

    <div class=”post”>

    <?php if (function_exists(‘get_cat_icon’)) get_cat_icon(); ?><h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>

    <div class=”entry”>

    <?php the_content(“[Read more →]”); ?>

    <p class=”postmetadata”>
    <?php _e(‘Tags:’); ?> <?php the_category(‘, ‘) ?> <?php _e(‘by’); ?> <?php the_author(); ?>
    <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?> <?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?>
    </p>

    </div>

    </div>

    <?php endwhile; ?>

    <div class=”postnav”>
    <?php posts_nav_link(); ?>
    </div>

    <?php else: ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <h2><?php _e(‘Not Found’); ?></h2>

    </div>

    <?php endif; ?>

    </div>

    <?php include (TEMPLATEPATH . ‘/leftbar.php’); ?>

    <?php get_sidebar(); ?>

    <?php get_footer() ?>

    </div></body>
    </html>

    the section that says this:
    <?php the_title(); ?>”><?php the_title();
    is that whats causing the double titles to show on my archived pages?
    If so, I can delete one of them, correct?

    Thanks for your response to my question.

    <?php if (function_exists('get_cat_icon')) get_cat_icon(); ?><h2>" title="<?php the_title(); ?>"><?php the_title(); ?></h2>

    That is your problem replace with

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    Try that, if it works then you have something working then try to put get_cat_icon in properly.

    Thread Starter oceanofp

    (@oceanofp)

    Okay, I replaced the code as you suggested, still no change in the double titles. I also have deactivated the category icon plugin, the category icon widget plugin and removed the widget from my sidebar. Again, no change in the double titles for my archives. I’m at a complete lost as to how this can be corrected. I keep wondering about the custom fields on the post edit page, though nothing is altered on my sites pages other than the title.

    Thank you for your reply.

    Check your single.php and see if the code is the same

    Thread Starter oceanofp

    (@oceanofp)

    Okay, it was in the single.php as well. Correcting that did the trick. My archived posts now have single titles. Thank you so much for your time and help.

    hey guys could you please help me i ma facing the same problem i have installed Headspace, SEO but it cause double post in my blog
    i will paste the code for the two files that u have mentioned
    archive.php

    <?php get_header(); ?>
    
    <div id="pagei">
    <div id="page">
    
    <div id="contents-b">
    <div id="content-b"><?php include TEMPLATEPATH. '/templates/archive.html'; ?></div>
    <?php get_sidebar(); ?><div class="clear"></div>
    </div>
    
    </div>
    </div>
    
    <?php get_footer(); ?>

    single.php

    <?php get_header(); ?>
    
    <div id="pagei">
    <div id="page">
    
    <div id="contents-b">
    <div id="content-b"><?php include TEMPLATEPATH. '/templates/single.post.template.html'; ?></div>
    <?php get_sidebar(); ?><div class="clear"></div>
    </div>
    
    </div>
    </div>
    
    <?php get_footer(); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Achives Shows Double Post Title’ is closed to new replies.