Created
May 24, 2016 14:45
-
-
Save foliovision/1c077b9dec1dd794bd04c961dac13291 to your computer and use it in GitHub Desktop.
Fix bbPress 1 post positions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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