Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to change the default order of the dropdown options for the ‘post in’ choices when making an act

@3ruce

Participant

Another point I just realised, it will now default to the custom group someone is a member of, rather than ‘my profile’. It sorts multiple groups by their ID, the highest ID is the one that get’s selected…

This is the code I’ve got from lines 33 – 71 in post-form.php in the theme (BuddyPress Corporate)

`

<input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="" />
:

<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) :
while ( bp_groups() ) : bp_the_group(); ?>
<option selected="selected" value="">
<?php endwhile;
endif; ?>

<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="" />

`

Skip to toolbar