Skip to content

Instantly share code, notes, and snippets.

@foliovision
Created May 24, 2016 14:45
Show Gist options
  • Save foliovision/1c077b9dec1dd794bd04c961dac13291 to your computer and use it in GitHub Desktop.
Save foliovision/1c077b9dec1dd794bd04c961dac13291 to your computer and use it in GitHub Desktop.
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