Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix bbPress 1 post positions
<?php
include('bb-load.php');
global $bbdb;
$aTopics = $bbdb->get_col( "SELECT topic_id FROM $bbdb->topics" );
foreach( $aTopics AS $iTopic ) {
echo $iTopic.'<br />';
bb_update_post_positions($iTopic);
}
echo "All done!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.