WordPress.org

Ready to get started?Download WordPress

Forums

Posts showing up in the footer on every page (12 posts)

  1. mcastor
    Member
    Posted 1 year ago #

    New to WordPress...

    http://michaelcastor.com is the blog I recently created.

    The problem is that the posts are showing up on every single page in the footer section. Not sure why this is happening but would like to remove it so that the posts are only showing up on the Home page.

    Could someone please help?

    Really appreciate it!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Re-upload a fresh, unpacked, copy of the Twenty Eleven folder to wp-content/themes using FTP or whatever file management application your host provides.
    http://wordpress.org/extend/themes/twentyeleven

  3. mcastor
    Member
    Posted 1 year ago #

    Thanks so much for the quick reply!

    Unfortunately I tried to re-upload a fresh, unpacked copy and nothing changed.

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

    don't use the 'showcase' page template for your pages (?)

    or remove the 'recent posts' section from the showcase.php file;

    starts with: <section class="recent-posts">
    ends with: </section><!-- .recent-posts -->

    don't forget to create a child theme to work with; http://codex.wordpress.org/Child_Themes

  5. mcastor
    Member
    Posted 1 year ago #

    Hi, thanks for the help. I removed the 'recent posts' section from the showcase.php file and am not using the showcase page template for my pages.

    I created a child theme and have this in my style.css file. Is there something I need to add to fix the problem? I am still seeing all my posts in the footer of each page.

    /*
    Theme Name: Twentyeleven Child
    Description: Child theme for the twentyeleven theme
    Author: Michael Castor
    Template: twentyeleven
    */

    @import url("../twentyeleven/style.css");

    #site-title a {
    color: #000;
    }

    require_once( get_stylesheet_directory(). '/my_included_file.php' );

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Can you point to a page where this is still happening? I had a look at your site earlier today (and again just now) and couldn't see the problem any more.

  7. Chandan Kumar
    Member
    Posted 1 year ago #

    You don't need to write the following in your stylesheet:

    require_once( get_stylesheet_directory(). '/my_included_file.php' );

    Have you modified your default page template or footer.php?

  8. mcastor
    Member
    Posted 1 year ago #

    http://michaelcastor.com/about-michael-castor/

    On the bottom of the page, all posts are being shown. They should only appear on the Home page.

    I removed

    require_once( get_stylesheet_directory(). '/my_included_file.php' );

    from the stylesheet.

    I have not made any changes to the default page template or footer.php. Very new to WordPress. Only changes made have been those that were suggested above. Should I make changes to the default page template or footer.php?

    Thank you again for all the help!

  9. Chandan Kumar
    Member
    Posted 1 year ago #

    If you are using any additional plugin, try deactivating them.

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    My bad. I was was looking at Posts - not Pages. Have you edited the theme at all?

  11. mcastor
    Member
    Posted 1 year ago #

    The only changes that I have made are the ones mentioned above. Nothing else.

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Can you try:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - re-uploading a fresh, unpacked, copy of the Twenty Eleven folder to wp-content/themes using FTP or whatever file management application your host provides.
    http://wordpress.org/extend/themes/twentyeleven

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

Topic Closed

This topic has been closed to new replies.

About this Topic