WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] is_home() not working even after adding global $paged; and wp_reset_query(); (3 posts)

  1. karwal.bubble
    Member
    Posted 1 year ago #

    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

  2. s_ha_dum
    Member
    Posted 1 year ago #

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

  3. karwal.bubble
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags