• Resolved chelseacoucou

    (@chelseacoucou)


    Hello,

    There is (–>) appearing before each post in my theme. Note that in the past I had done some editing to remove the site title from each page.

    I see where the problem lies but I don’t know where to find it and fix it since I don’t know much PHP.

    My theme is Twenty Ten. Here is the code from one of my pages:

    <div id=”main”>
    <div id=”container”>
    <div id=”content” role=”main”>
    <div id=”post-2″ class=”post-2 page type-page hentry”> <h1 class=”entry-title”><!–?php the_title(); ?–></h1>
    –> [!!THE ISSUE!!]
    <div class=”entry-content”>
    <p>This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.</p>

Viewing 8 replies - 1 through 8 (of 8 total)
  • What is your website address?

    Thread Starter chelseacoucou

    (@chelseacoucou)

    As of now it is in “maintenance mode” via a plugin so no one except people logged in can view it but I can take it off temporarily if you could help! Thanks for the reply

    I would guess that in WP Admin under Appearance, Editor, One column, no sidebar Page Template (onecolumn-page.php) you have an extra “–>” tag after <h1 class="entry-title"><?php the_title(); ?></h1>

    Or in Page Template (page.php)

    Or in Single Post (single.php)

    Thread Starter chelseacoucou

    (@chelseacoucou)

    thank you. I just looked in page.php and couldn’t find the issue now looking into single.php.

    Here is the code from page.php:

    <div id=”container” class=”one-column”>
    <div id=”content” role=”main”>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <div class=”entry-content”>
    <?php the_content(); ?>
    <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘twentyten’ ), ‘after’ => ‘</div>’ ) ); ?>
    <?php edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
    </div><!– .entry-content –>
    </div><!– #post-## –>
    <?php comments_template( ”, true ); ?>
    <?php endwhile; ?>
    </div><!– #content –>
    </div><!– #container –>
    <?php get_footer(); ?>`

    Thank you.

    Thread Starter chelseacoucou

    (@chelseacoucou)

    Yes! It was in page.php and there was an extra –>

    Thank you so so much for your help. Problem resolved! 🙂

    Thread Starter chelseacoucou

    (@chelseacoucou)

    sorry I meant I found it in single.php

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

The topic ‘(–>) Appearing Before All Posts’ is closed to new replies.