Taxonomy structure help

If you want to filter your audio lessons post archive you could borrow from the article I linked you to and add a custom rewrite rule: function wpa_add_rewrite_rules() { global $wp_rewrite; $new_rules = array( ‘audio-lessons/language/(.+)/?$’ => ‘index.php?post_type=audio-lesson&language=” . $wp_rewrite->preg_index(1) ); $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } add_action( “generate_rewrite_rules’, ‘wpa_add_rewrite_rules’ ); After re-saving your permalinks, something … Read more

Hierarchical Taxonomy Terms Select Menu Output with selected=”selected” Set

In each foreach loop, you’re setting the first item’s ID as the value for $selected which will obviously match the ID of the first item. Before running any of the foreach loops fetch the stored value from the DB then use that for the comparison. global $wpdb; $selected = $wpdb->query( “SELECT something FROM $wpdb->table_name” ); … Read more