WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Content on Pages showing up twice (20 posts)

  1. lifeunsweetened
    Member
    Posted 1 year ago #

    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!

  2. Himanshu Parashar
    Member
    Posted 1 year ago #

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

  3. lifeunsweetened
    Member
    Posted 1 year ago #

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

  4. Himanshu Parashar
    Member
    Posted 1 year ago #

    please check the_content()

  5. lifeunsweetened
    Member
    Posted 1 year ago #

    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(); ?>
  6. Himanshu Parashar
    Member
    Posted 1 year ago #

    can we have skype quickly. "wphelpline"

    [mod: please keep the topic within the forum]

  7. lifeunsweetened
    Member
    Posted 1 year ago #

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

  8. Himanshu Parashar
    Member
    Posted 1 year ago #

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

  9. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  10. Himanshu Parashar
    Member
    Posted 1 year ago #

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

  11. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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.

  12. Himanshu Parashar
    Member
    Posted 1 year ago #

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

  13. lifeunsweetened
    Member
    Posted 1 year ago #

    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

  14. Andrew
    Forum Moderator
    Posted 1 year ago #

    Agree with disabling of plugins.

  15. Himanshu Parashar
    Member
    Posted 1 year ago #

    you posted page.php code not the header.php

  16. lifeunsweetened
    Member
    Posted 1 year ago #

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

  17. Himanshu Parashar
    Member
    Posted 1 year ago #

    fantastic. please mark this post as closed.

  18. lifeunsweetened
    Member
    Posted 1 year ago #

    Ok thanks

  19. FWIW, we want people to provide help here in the forums, not over skype or email, whenever possible, as removing the help from here makes it nigh impossible for the next guy to know what to do.

    Himanshu Parashar, in the future, please don't ask to skype people.

  20. Himanshu Parashar
    Member
    Posted 1 year ago #

    @mika yes. Understood.

Topic Closed

This topic has been closed to new replies.

About this Topic