Activity Page condition?
-
Hi
The activity page seems to be set up unusual way (for me) in that there is no “page ID” for it in the same way as I can find when going to Pages or Posts.
I am trying to load some script on my Activity page but none of these seem to work to verify its the Activity page
if ( is_page( 'activity' ) ) { echo "This is the activity page!"; } else { echo "This is not the 'activity' page."; }
if ( bp_is_activity_component() { echo "This is the activity page!"; } else { echo "This is not the 'activity' page."; }
if ( is_page( 222 ) ) { echo "This is the activity page!"; } else { echo "This is not the 'activity' page."; }
Is there a way to identify the Activity page?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.