Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,907
- Requests & Feedback
- 9,550
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
I am trying to pass 2 parameters to the user on the if/else statement as the below code shows. The main issue is the else. It loads only 5 items per page as it should, but the &scope=friends is not filtering the activity to show only friends activity for non-admins. Please tell me what I am doing wrong here! Thank you.
`<?php
$params = ”;
if ( ! is_admin() )
$params .= ‘&per_page=5’;
else
$params .= ‘&scope=friends&per_page=5’;
?>
`