Support » Fixing WordPress » Titles All Displaying the Same Name

  • Resolved lwatkins


    When I click on an article the wrong title is displaying. It displays the same title for any article. You can see what I mean here…

    All of the posts, once inside the post page, are displaying the same title. I did not change the post.php file, and I didn’t add any plugins so I’m not sure what is causing it.

    I have regenerated permalinks as well.

    Any ideas?

    ~ Leisa

Viewing 9 replies - 1 through 9 (of 9 total)
  • 1. Do NOT use only /%postname%/ as your permalink structure.

    2. Validate and fix your code (you have major errors).


    Why should I NOT use only postname as my permalink structure? I had category until a few minutes ago. But the URL ends up extremely long and wrapping if I have to include it in email etc.

    Can someone tell me what is wrong with this code. If I can identify the problem in this perhaps I can figure out the rest…

    <center><p><a href="">
    <img alt="feed" border="0" src="" width="76" height="74"></a></p></center>

    You’ll only have problems if you use only /%postname%/ as your permalink structure (those who try it seem to end up in this forum seeking help for a variety of problems). Here’s some explanation:

    Using only %postname%

    Do not use the <center> tag:

    Any suggestions on how I can determine which page element the errors are coming from? Sidebar vs. other sections etc. I’m assuming the ul and li are from the sidebar but I don’t see anything wrong in the code and it hasn’t been edited at all.

    They are all widget based and I ran the markup validation several months ago and the code on the sidebar hasn’t been changed since then.

    This is what it has:

    <ul id="sidebarright">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
    <?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', TRUE, TRUE, -1, TRUE); ?>
    <li id="meta"><?php _e('<h2>Meta</h2>'); ?>
    		<?php wp_register(); ?>
    		<li><?php wp_loginout(); ?></li>
    		<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    		<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    		<?php wp_meta(); ?></ul></li>
    <?php endif; ?>

    To show where the errors are when you validate your code, select the Show Source option and then click the Revalidate button. Since one code error can cause a cascade of additional errors, it’s best to fix the most obvious errors first (like unclosed img, div, p tags), and this can result in some of the more bizarre errors going away.

    It looks like I have gotten rid of all the errors. At least if I disable a couple of widgets. But the titles are still not displaying correctly. Any other ideas?

    Edit – it looks like there are some on the archives page however. Most of them having to do with no alternate image on the thumbnails. But that shouldn’t affect titles should it?

    You still need to change your permalink structure to something else.

    I changed the permalink structure and still having the same problem. Any other ideas?


    Fixed. My template was calling the title in the wrong order. Thanks!


Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Titles All Displaying the Same Name’ is closed to new replies.