Forums

using if-(is front page) only works ONCE in a template? (4 posts)

  1. Cathy Tibbles
    Member
    Posted 3 years ago #

    I would like to use "if(is front page)" in the header to display a list, and then again the sidebar to display variable content. But the second if-statement doesn't work. And if I remove teh one in the header, then the "2nd" one works. Can I only use this statement once in a rendered page?

  2. Cathy Tibbles
    Member
    Posted 3 years ago #

    I want to use this if(is_front_page())-else bit:Pastebin, twice. But I can't. It doesn't return any error, it just doesn't work. Anybody know why?

  3. jcrens8392
    Member
    Posted 3 years ago #

    Did you ever get this figured out? I seem to be having the same problem in 2.7 beta.

  4. Jehy
    Member
    Posted 3 years ago #

    use is_home instead of is_front_page.

Topic Closed

This topic has been closed to new replies.

About this Topic