Skip to content

Commit

Permalink
feat(profile): set index to order it (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Oct 12, 2021
1 parent 77e1a1c commit 637e16f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buddypress/members/single/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,11 @@
foreach ( $campaigns as $cid ) {
$object = get_post( $cid );
if ( ! empty( $object ) ) {
$campaign_objects[] = $object;
$campaign_objects[get_field( 'campaign_start_date', $object->ID )] = $object;
}
}
}
ksort($campaign_objects);
?>
<?php if ( count( $campaign_objects ) > 0 ) : ?>
<h2 class="profile__heading"><?php esc_html_e( 'Campaigns Participated In', 'community-portal' ); ?></h2>
Expand Down

0 comments on commit 637e16f

Please sign in to comment.