Site Members Loop & Variables
I’m working on a plugin that utilizes “The Site Members Loop“
The first line of the loop says
<?php if ( bp_has_site_members( 'type=active&max=5' ) ) : ?>
What I would like to do is put a variable where the max number is. I can put a variable where active is and it works fine. But if I put a variable where the max number is
(i.e. &max=$come_on_you_dang_thing) it kicks out the following error:
Warning: Division by zero in C:… buddypressbp-corebp-core-templatetags.php on line 819
The area around line 819 (so you dont have to go look) says
$this->pag_links = paginate_links( array(
'base' => add_query_arg( 'upage', '%#%' ),
'format' => '',
'total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ),
'current' => (int) $this->pag_page,
'prev_text' => '«',
'next_text' => '»',
'mid_size' => 1
The longest line there is 819.
So…??? Any clue why it’s kicking out that division error and how I can fix it??
Thanks in advance for your help!!
The topic ‘Site Members Loop & Variables’ is closed to new replies.