• Hi,

    I’m looking for some technical direction after much reading and poking about the forums as well as other online websites for troubleshooting against conditional statements.

    I’m not trying anything uber-technical here, all i’m trying to do is show/hide content based on whether or not the user is on the home page.

    I’m using the new Twenty Ten theme and adding TEXT widgets to the sidebar. In the widget, I am entering the following code:

    [code]
    <?php if (is_front_page() || is_home()) { ?>
    <img src="images/btn_video.png">
    <?php } ?>
    <hr />
    [/code]

    I’ve also tried other variations like a single condition for is_home, or is_front_page. Nothing works. I’ve also added the elusive wp_query_reset() prior to the conditional statement, that doesn’t work either.

    I currently have ALL plugins disabled and will continue to until my troubleshooting is resolved – so the plugin interference route is moot.

    I’ve also hard coded the same exact code into sidebar.php and removed the TEXT widget and it still does not work.

    I’m dumbfounded how something so easy simply fails. I’m just hoping at this point i’m not the only fool dealing with this.

    Any aid, medical and otherwise technical you can offer would be greatly appreciated :^)

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Another Conditional Statement Question – WP3 Twenty Ten Theme’ is closed to new replies.