#4901

Sushi
Staff
Points: 199

Hi there

Please check the sorting now. There was a bug and we released an update.

About the FTP, it lets me in at an empty directory, the path was not correct.

Remove the above code from the place you added. Then follow the mu-plugins rule and add the following code:


<?php
function duofaq_add_categories_filters() {
	global $typenow;
 
	$taxonomies = array('faq_categories');
 
	if( $typenow == 'faq' ){
 
		foreach ($taxonomies as $tax_slug) {
			$tax_obj = get_taxonomy($tax_slug);
			$tax_name = $tax_obj->labels->name;
			$terms = get_terms($tax_slug);
			if(count($terms) > 0) {
				echo "<select name='$tax_slug' id='$tax_slug' class='postform'>";
				echo "<option value=''>Show All $tax_name</option>";
				foreach ($terms as $term) { 
					echo '<option value='. $term->slug, $_GET[$tax_slug] == $term->slug ? ' selected="selected"' : '','>' . $term->name .' (' . $term->count .')</option>'; 
				}
				echo "</select>";
			}
		}
	}
}
add_action( 'restrict_manage_posts', 'duofaq_add_categories_filters' );

Let us know if that works for you.

– Sushi

  • This reply was modified 2 years, 6 months ago by  Sushi.