Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Display only if is_front ?


_ck_
Participant

@_ck_

There already is a function is_front()

if (is_front()) {
// do stuff
}

lots of related functions in template-functions.php

if you need multiple pages, a trick I like to use is

if (in_array(bb_get_location(),array('topic-page','tag-page','forum-page'))) {
// do stuff
}

Skip to toolbar