• Resolved jaclynsuzann

    (@jaclynsuzann)


    The following code appears on the blog post title on the home page only:

    ” rel=”bookmark”>””

    I’ve snooped through all the code, can’t find it anywhere, I’ve tried creating a new post and it does the same thing? Can anyone help with this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jaclynsuzann

    (@jaclynsuzann)

    Looks like there’s a small error in the block of code in your home.php or index.php that looks something like this:

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

    Post it here, or compare that code bit with an unedited copy of those files from a new download of your theme.

    Thread Starter jaclynsuzann

    (@jaclynsuzann)

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”breadcrumb”>
    Home » Wealth Blog » <?php the_category(‘ » ‘); ?>
    </div>
    <h2>” rel=”bookmark”>”<?php the_title(); ?>”</h2><h4 class=”post-heading”>Submitted by <?php the_author_posts_link(); ?> on <?php the_date(); ?> – <?php the_time(); ?></h4>
    <?php the_date( ‘F Y’, ‘[ ‘, ‘ ]’); ?>

    Here it is! Not sure where that came from though and how to fix it? Should it just be removed?

    I think some of your code is being jacked up on here and not displaying properly, please post your code in between backtics.

    (under the Esc key on American keyboard, with the tilde… ~)

    Thread Starter jaclynsuzann

    (@jaclynsuzann)

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="breadcrumb">
    Home » Wealth Blog » <?php the_category(' » '); ?>
    </div>
    <h2>" rel="bookmark">"<?php the_title(); ?>"</h2><h4 class="post-heading">Submitted by <?php the_author_posts_link(); ?> on <?php the_date(); ?> - <?php the_time(); ?></h4>
    <?php the_date( 'F Y', '[ ', ' ]'); ?>

    Replace <h2>" rel="bookmark">"<?php the_title(); ?>"</h2> with

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

    Thread Starter jaclynsuzann

    (@jaclynsuzann)

    Perfect! Thank you so much!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Blog Post title has code in it?’ is closed to new replies.