Forums

[resolved] Odd difference between local & remote version: if-statements not working online (3 posts)

  1. knalstaaf
    Member
    Posted 2 years ago #

    I'm working with IF-statements (if is_single, is_archive, is_home, ...) in the sidebar, and on the local version of the website (on my computer) this seems to work. The sidebar recognizes when it's a single or archive page.

    In the online version however, everything seems to considered as an archive page, eventhough the site-files are direct copies of the local version.

    Have you got an idea what may be the problem here? Could it have something to do with online settings?

    I've disabled all the pug-ins in order to find out if that could be the problem, but with no result.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Site url?

  3. knalstaaf
    Member
    Posted 2 years ago #

    Solved: added <?php wp_reset_query(); ?> in front of the part that was causing the issue.

Topic Closed

This topic has been closed to new replies.

About this Topic