• axiomjunglist

    (@axiomjunglist)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • MichaelH

    (@michaelh)

    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?

    Thread Starter axiomjunglist

    (@axiomjunglist)

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

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php conditional statement not working in sidebar…’ is closed to new replies.