Support » Fixing WordPress » Content on Pages showing up twice

  • Resolved lifeunsweetened

    (@lifeunsweetened)


    I just noticed that each of my pages “About”, “Contact”, etc. is displaying the content twice- once is above my header, second is displaying normally with the page width. I’m not sure how long it’s been going on, I just noticed it today. I update to the new version of WordPress after I noticed it, so I don’t think that could be the issue. Anyone?

    My blog is http://www.lifeunsweetened.com

    An example of a page I’m speaking of is http://www.lifeunsweetened.com/about/

    Thank you!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Himanshu Parashar

    (@uniquecodergmailcom)


    it looks like you have included the_content() twice in page.php file.

    I just checked and header.php isn’t there twice in my page.php file

    Himanshu Parashar

    (@uniquecodergmailcom)


    please check the_content()

    This is what appears in my editor under the page.php file

    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php
    			/* Run the loop to output the page.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-page.php and that will be used instead.
    			 */
    			get_template_part( 'loop', 'page' );
    			?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Himanshu Parashar

    (@uniquecodergmailcom)


    can we have skype quickly. “wphelpline”

    [mod: please keep the topic within the forum]

    I don’t have a webcam on my computer, I’m sorry.

    Himanshu Parashar

    (@uniquecodergmailcom)


    chat is enough. I am not asking for video chat. screenshare would be fine so that I can see the issue.

    Moderator Andrew Nevins

    (@anevins)


    Forum moderator


    @himanshu Parashar
    The issue is already visible through the links in the original post.

    Himanshu Parashar

    (@uniquecodergmailcom)


    @andrew. I know the issue is visible but in the backend what is causing issue. you can’t see through in original post. understood ?

    possibly caused by a plugin, because the duplicate output is within the section used by those kind of things;

    deactivate all plugins, and if that helps, re-activate one ata time to locate tht interfering plugin.

    Himanshu Parashar

    (@uniquecodergmailcom)


    Hi Rachel,
    have you checked the_content() in header.php

    There is no “the_content() in the header.php, I pasted everything in the header.php file above and it wasn’t in there to my knowdledge.

    I will try deactivating plug-ins

    Moderator Andrew Nevins

    (@anevins)


    Forum moderator


    Agree with disabling of plugins.

    Himanshu Parashar

    (@uniquecodergmailcom)


    you posted page.php code not the header.php

    I deactivated the “WordPress Users” plug-in and it seems to be showing up normally now. Maybe this was the issue?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Content on Pages showing up twice’ is closed to new replies.