[resolved] Static Pages Overrun by a Post (5 posts)

  1. shaunyboy129
    Posted 6 years ago #


    I'm having problems where what are supposed to be static pages returning a post instead. This happens with all of my static pages, including my home page. I believe its something to do with the code for the theme I've been creating.

    First and perhaps most importantly, I'm using the plugin pg4wp. Its possible this causing the problem, but I don't think it is as I had the static pages running properly earlier.

    If you want to take a look at the site:

    All the links at the top (ignore "Contact"), besides "News" and "Events" are links to static pages. They come up with one of my news posts (which is missing the title and date etc because it is using the theme file page.php). "News" and "Events" are categories which come up as expected.

    Also note that the links cannot be the problem, as when I go "View Page" from the Admin Panel, I get the same result.

    Hopefully someone is able to help me, I'm going out of my mind trying to solve this one.


  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Have you tried:

    - 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).

    - switching to the default theme to rule out any theme-specific problems?

  3. shaunyboy129
    Posted 6 years ago #

    The only plugin I have installed is akismet, which isn't activated.

    However, I tried switching themes which let the static pages show, so its definately a problem with my theme. I'll go through the code and see if I can find where I've gone wrong.

    Any pointers on where to start would be most welcome :)

    Thanks for your help esmi

  4. esmi
    Forum Moderator
    Posted 6 years ago #

    All I can say is that the issue is probably within page.php. At least that's where you need to start your troubleshooting.

  5. shaunyboy129
    Posted 6 years ago #

    Thanks, found the issue.

    Had removed the div which told WordPress what the post class was.

    Cheers for the help

Topic Closed

This topic has been closed to new replies.

About this Topic