WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Titles All Displaying the Same Name (10 posts)

  1. lwatkins
    Member
    Posted 6 years ago #

    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...
    http://art.aneducationaljourney.com/

    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

  2. iridiax
    Member
    Posted 6 years ago #

    1. Do NOT use only /%postname%/ as your permalink structure.

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

  3. lwatkins
    Member
    Posted 6 years ago #

    Thanks.

    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="http://feeds.feedburner.com/AnArtfulJourney/">
    <img alt="feed" border="0" src="http://www.aneducationaljourney.com/images/artrss.jpg" width="76" height="74"></a></p></center>
  4. iridiax
    Member
    Posted 6 years ago #

    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:

    http://www.w3schools.com/TAGS/tag_center.asp

  5. lwatkins
    Member
    Posted 6 years ago #

    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 : ?>
    	<li>
    <h2>Blogroll</h2>
    <ul>
    <?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', TRUE, TRUE, -1, TRUE); ?>
    </ul>
    </li>
    <li id="meta"><?php _e('<h2>Meta</h2>'); ?>
     	<ul>
    		<?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; ?>
    
    		</ul>
  6. iridiax
    Member
    Posted 6 years ago #

    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.

  7. lwatkins
    Member
    Posted 6 years ago #

    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?

  8. iridiax
    Member
    Posted 6 years ago #

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

  9. lwatkins
    Member
    Posted 6 years ago #

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

    ~Leisa

  10. lwatkins
    Member
    Posted 6 years ago #

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

    Leisa

Topic Closed

This topic has been closed to new replies.

About this Topic