Skip to:
Content
Pages
Categories
Search
Top
Bottom

Skip Over “Admin” Posts In Activity Loop..Don’t Want Viewers To See Admin Posts

  • I had this solved at one point. Then as I began to post more on my site, it’s like the loop completely ignored the code modification.

    I had

    `while ( bp_activities() ) : bp_the_activity();

    global $bp, $activities_template;

    $activity_id = bp_get_activity_user_id();

    if ($activity_id == 1) {

    $activities_template->next_activity();

    }

    include( locate_template( array( ‘activity/entry.php’ ), false ) )

    endwhile; `

    It worked fine at first, but now it doesn’t.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Skip Over “Admin” Posts In Activity Loop..Don’t Want Viewers To See Admin Posts’ is closed to new replies.
Skip to toolbar