Forums

php conditional statement not working in sidebar... (3 posts)

  1. axiomjunglist
    Member
    Posted 2 years ago #

    I've gotten some really helpful answers to some burning questions here. I do have one more that is really nagging.

    Here is the current Wordpress site live:

    http://nahn-oregon.org/

    I'm trying (if possible) to fill the bottom sidebar content with a query using the code found here:

    http://latestpost.pastebin.co.uk/3890.

    Now it does work, it populates the bottom sidebar div with the right content I'm asking for, but it also places post data from that category into the main content area on every page as well. That's no good. Right now I just have some html filler in there to show how I would like the sidebar to look (and how the rest of the pages should work). I've tried re-naming the bottom sidebar div, looking for open tags that should be closed & checking my style sheet for errors. So far I haven't figured it out.

    Anybody out there have an idea of why the code would flow into the main content area using the code from the link above? The catagory ID is correctly assigned.

  2. MichaelH
    moderator
    Posted 2 years ago #

    Is that a custom theme or do you have a link to where you downloaded the theme?

    In what template file (e.g. sidebar.php) are you placing that code?

  3. axiomjunglist
    Member
    Posted 2 years ago #

    It's custom, and yes the code resides in the sidebar. The theme was created entirely from scratch.

Topic Closed

This topic has been closed to new replies.

About this Topic