Skip to:

Opened 9 years ago

Closed 9 years ago

#6343 closed defect (bug) (no action required)

Problem with is_page() conditional tag and member/groups single pages

Reported by: kuperman87's profile kuperman87 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.2.1
Component: Members Keywords: needs-testing close
Cc: kunicki.piotr@…


I’ve tested default TwentyFifteen theme.

When I'm using i.e. the is_page('5') conditional tag for my widget, the widget is visible on the page with id = 5, but also on all single member and group pages.

I think that the problem is connected with the fact that body class on each of single member/group pages looks like:

... page page-id-0 ...

in the previous version of BP, single member and group pages had id of the parent page (i.e. Members, Groups) and the is_page() tag worked properly.

Change History (1)

#1 @hnla
9 years ago

  • Keywords close added
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

This is an issue known and resolved in WP 4.2. BP needed to make it's pages id=0 triggering a WP bug.

You can try and patch WP in advance of the fix being released by applying the changes in this diff patch:

A little more detail is found on this BP support thread:

Note: See TracTickets for help on using tickets.