Skip to content

Instantly share code, notes, and snippets.

View Faison's full-sized avatar

Faison Zutavern Faison

View GitHub Profile
@Faison
Faison / .htaccess
Created April 22, 2014 16:47
mod_rewrite rules written by Project Force Field
# BEGIN OGFF
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^safe\-entrance\.php$ wp-login.php [NC,L]
RewriteCond %{THE_REQUEST} wp\-login\.php [NC]
RewriteRule ^wp\-login\.php$ - [F]
</IfModule>
# END OGFF
@Faison
Faison / gist:8530044
Created January 20, 2014 21:58
Fix the [ReOrder Post Within Categories](http://wordpress.org/plugins/reorder-post-within-categories/) issue where posts are removed from the loop when updated. Note, this plugin is a bit messy to begin with, but I just needed a solution that works. I first brought up this issue in the WordPress Plugin Support Forum [here](http://wordpress.org/s…
Around line 180 of the file `reorder-posts`within`categories.php`, you should see the following:
if($taxonomie->hierarchical == 1 && is_array($orderedSettingOptions) && in_array($taxonomie->name, $orderedSettingOptions)){
//echo "<li>".$taxonomie->name."</li>";
$terms = get_terms( $taxonomie->name );
//echo "<pre>";
//print_r($terms);
//echo "</pre>";
if (count($terms) > 0){
//echo "<ul>";