fadingdust
Forum Replies Created
-
Forum: Plugins
In reply to: [Recipes by Simmer] Ordering of the ingredient listWe have had this problem, but only while using bulk-add ingredients mixed with individually added ingredients. The bulk items will likely show up first. It’s an issue that you’ll never notice until you add an individually added ingredient, and don’t reorder it. Once you reorder any ingredient, even the bulk-added ingredients get an order assigned.
#itsabug
Forum: Plugins
In reply to: Widgets – Adding An Additional CSS ClassHere ya go:
function widget_index_class($params){
$sw=wp_get_sidebars_widgets();
$this_sidebar=$params[0][‘id’];
$this_widget_id=$params[0][‘widget_id’];
$widgets=array_flip($sw[$this_sidebar]);
$this_widget_index=$widgets[$this_widget_id];
$params[0][‘before_widget’] = preg_replace( ‘/class=”/’, “class=\”widget-index{$this_widget_index} “, $params[0][‘before_widget’], 1 );
return $params;
}
add_filter(‘dynamic_sidebar_params’, ‘widget_index_class’);Add the above to functions.php.. I’ve got it after the sidebars are registered.
I had a 404 problem for pages, but not the is_tax() views. Turns out the plugin wasn’t supplying a value for the rewrite:
‘rewrite’ => array(‘slug’ => ”)
..like it should be like this: ‘rewrite’ => array(‘slug’ => ‘designtype’).Another mildly-related problem was the first argument to both ‘register_post_type’ & ‘register_taxonomy’ must be lowercase.
Hope that’s reasonably helpful.. likely not an exact solution