Support » Fixing WordPress » is_home() not working even after adding global $paged; and wp_reset_query();

  • Resolved karwal.bubble

    (@karwalbubble)


    Hi,

    I am using wp 3.4. Trying to show sidebar only on hoe page so used is_home() but its not working. I tries searching on this topic and tried these codes putting before is_home()
    wp_reset_query();
    global $paged;

    but it did not work. Please suggest.

    Thanks
    Baljit

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

    (@apljdi)

    is_home() will return true only for your blog index page. If you have a static home page you need is_front_page().

    karwal.bubble

    (@karwalbubble)

    Thanks ..however.. I just used some plugin to show sidebars on specific pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘is_home() not working even after adding global $paged; and wp_reset_query();’ is closed to new replies.