Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Title showing up in body of post WordPress

  • SOLVED

Hello,

The first post of a new blog I'm starting has a glitch that the rest of my posts don't have.. I'm fairly new at this, so I'm hoping someone can try to explain exactly where I can fix the problem.

For some reason, the title "BLAST-OFF" shows up as the first two words in the actual <em>body</em> my post with a strange "">" after the last letter as seen [[LINK href="http://img.skitch.com/20100602-bwj5uxrg7x3p5enp1rwtta35b3.jpg"]]HERE[[/LINK]].

But you can see on the back-end that the words "BLAST OFF" shouldn't even be in the <em>body</em> of the post at all: ([[LINK href="http://img.skitch.com/20100602-q2hpxid5ur7u7898rma91cct87.jpg"]]screenshot[[/LINK]])

Does anyone know how I can remove that??

The blog is [[LINK href="http://antagonismblog.com"]]http://antagonismblog.com[[/LINK]]

Answers (7)

2010-06-02

Rashad Aliyev answers:

Dear Ant Lively,

Edit your theme index.php or home.php (If you don't have single.php, then it'll be home.php if you have single.php then open index.php ) find


find the <?php the_title(); ?> and delete more "> from there.
or you can send your index.php or home.php codes here. I can show you.

Best regards,


Ant Lively comments:

Thanks Rashad. I think you've correctly identified the issue here.. But it looks like you need to see the actual code. Your suggestion came close, but doesn't quite fix the issue yet..

Blog URL: [[LINK href="http://www.antagonismblog.com/"]]http://www.antagonismblog.com/[[/LINK]]

Screenshots of my home.php code -

[[LINK href="http://img.skitch.com/20100606-n633b4gs1m72g5pn9jsewhbpqu.jpg"]]BEFORE[[/LINK]] and [[LINK href="http://img.skitch.com/20100606-pb1icwfxggp65q1d39jm9npu31.jpg"]]AFTER[[/LINK]] deleting the: ">


Full home.php file:
<?php get_header() ?>

<div id="container">
<div id="content">
<?php $feature_post = get_posts( 'category_name=feature&numberposts=1' ); ?>
<?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>

<div id="featured" style="background:#241C0F url('<?php the_post_image_url('full'); ?>') center center repeat;">
<div class="featured-post">
<small>Feature:</small>
<h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h2>
<p class="featured-content">
<?php the_content_rss('', TRUE, '', 20); ?><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark">Read More</a>
</p> <!-- END featured-content -->
</div>
</div>
<?php endforeach; ?>

<?php while ( have_posts() ) : the_post() ?>
<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
<div class="entry-content">
<p class="thePic clearfix">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_image('thumbnail'); ?></a>
</p>
<p>
<?php the_content_rss('', TRUE, '', 40); ?><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark">Read More</a>
</p>
</div><!-- .entry-content -->

<div class="entry-meta clearfix">
<h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h2>
<ul class="meta-list">
<li><span class="author vcard"><?php printf(__('Written by %s', 'sandbox'), '<a class="url fn n" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</a>') ?></span></li>
<li><span class="entry-date">Posted on <abbr class="published green" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s', 'sandbox'), the_date('', '', '', false), get_the_time()) ?>.</abbr></span></li>
<li><span class="cat-links"><?php printf(__('Filed under %s', 'sandbox'), get_the_category_list(', ')) ?>.</span></li>
<?php the_tags(__('<li><span class="tag-links">Tagged as ', 'sandbox'), ", ", ".</span></li>") ?>
<li><span class="comments-link">Read <?php comments_popup_link(__('Comments (Be the first!)', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?>.</span></li>
<?php edit_post_link(__('Edit.', 'sandbox'), "\t\t\t\t\t<li class=\"edit-link\">", "</li>"); ?>
</ul>
</div>
</div><!-- .post -->

<?php comments_template() ?>
<?php endwhile ?>

<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;Older posts</span>', 'sandbox')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('<span class="meta-nav">Newer posts&raquo;</span>', 'sandbox')) ?></div>
</div>

</div><!-- #content -->
</div><!-- #container -->

<?php get_sidebar() ?>
<?php get_footer() ?>


Ant Lively comments:

Also note that the all of the other posts are just fine..

There only differences between this "Blast-Off" post and the others are that
A) it is the only one categorized as "Featured" and
B) it is the first post of the blog

Not sure if that helps, but just in case..

Thanks!!

2010-06-02

Andrzej answers:

hey, can you send me a link to the page by private message?


Andrzej comments:

Ok, I think this is it:
Looks like there is some inproper markup in the link for this image http://nbm.im/2010-06-02_0903.png

Here's what you do:
- Switch to HTML edit: http://nbm.im/2010-06-02_0903.png
- Find:
<a href="http://www.antagonismblog.com/2010/05/blast-off-4/" title="<span class="caps">BLAST-OFF</span>"><img width="185" height="185" src="http://www.antagonismblog.com/wp-content/uploads/2010/04/moon_600x600-185x185.jpg" class="attachment-thumbnail" alt="" title="moon_600x600" /></a>
- Error is exactly in here: <a href="http://www.antagonismblog.com/2010/05/blast-off-4/" title="<span class="caps">BLAST-OFF</span>">
There is a [SPAN] tag inside TITLE parameter
just change to:
<a href="http://www.antagonismblog.com/2010/05/blast-off-4/" title="BLAST-OFF">

should be all


Andrzej comments:

this is the second link btw for HTML edit http://nbm.im/2010-06-02_0903_001.png

2010-06-02

Taeke Reijenga answers:

Please submit an URL, there could be hundreds of reasons but it will be easier for us to see what the actual source code looks like

2010-06-02

Monster Coder answers:

It is coding error. In the source code you must have put extra ">.

Assume this is the code:
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

but may be you wrote:
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>"></a></h2>

please notice:
">
just after
<?php the_title(); ?>


Monster Coder comments:

after checking the link, I see there are some problem in <a> tag's attributes.
<a href="http://www.antagonismblog.com/2010/05/blast-off-4/" title="&lt;span class=" caps="">BLAST-OFF"&gt;

it is not correctly formed.

2010-06-02

Michael Fields answers:

It looks like the is a small error in your html/php mix. Not sure which file is causing this without a link to your site, but it is most likely home.php or index.php. A couple questions:

Does this only happen on the homepage + archives pages?
Does this happen in single views?
Which theme are you using?

Best,
-Mike

2010-06-02

Monit Jadhav answers:

Hi there

There is a small generated code there. <strong>"&gt;</strong> This is what is causing the trouble. Something wrong with the image tag.

Will post a solution shortly

Monit

2010-06-02

Kazi Shaiduzzaman answers:

well, it seems that in your title have this

<span class="caps">BLAST-OFF</span>

it may be solved if you edit this post title with just BLAST-OFF from wp-admin.

Thank you


Kazi Shaiduzzaman comments:

Have you got the point or need more assistance from me


Thank you


Kazi Shaiduzzaman comments:

When you mouse over on the BLAST-OFF title link you will see mouse over title "Permalink to <span class="caps">BLAST-OFF</span>"... so you just need to edit the title with just BLAST-OFF