Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: is_page() cannot identify a page that has buddypress activity assigned to it

@terraling

Participant

Sorry, I missed the array() out of my example.

The slug of my page is actually “talk-of-the-town”, it is the static front-page of the site and has the buddypress activity page assigned to it. The page id is 95.

None of these tests identify the page, although they do identify the other pages in the list:

is_page(array('page1','page2','page3','talk-of-the-town'))  ? get_template_part('filters') : get_sidebar();
is_page(array('page1','page2','page3','95'))  ? get_template_part('filters') : get_sidebar();
is_page(array('page1','page2','page3','activity'))  ? get_template_part('filters') : get_sidebar();

bp_is_page(‘activity’) does work.

I have the same problem with the groups page, btw.

The above is by way of information. The test is to load a special sidebar on certain pages, otherwise load the normal sidebar. I’m just going to reverse the test, to load the normal sidebar for other specified pages, otherwise load the special sidebar.

Thanks for your help…

Skip to toolbar