diff --git a/taxonomy-external_system.php b/taxonomy-external_system.php deleted file mode 100755 index 3129853..0000000 --- a/taxonomy-external_system.php +++ /dev/null @@ -1,164 +0,0 @@ - 'external_system', - 'field' => 'slug', - 'terms' => sanitize_text_field(get_query_var('external_system')), - ) -); - -$post_args = array( - 'post_type' => 'course', - 'post_status' => 'publish', - 'posts_per_page' => -1, - 'ignore_sticky_posts' => 0, - 'tax_query' => $taxquery, - 'orderby' => 'name', - 'order' => 'ASC', - 'hide_empty' => 0, - 'hierarchical' => 1, - 'exclude' => '', - 'include' => '', - 'number' => '', - 'pad_counts' => true, -); -$post_my_query = null; -$post_my_query = new WP_Query($post_args); - -?> - - - -
-
-
- - All Courses - -
-

SYSTEMname ?>

- -
- -
-
- -
- -
-
- Filters: - - - x - - x - - - - x - - x - - - x - - -
- have_posts() ) : ?> -
found_posts ?> courses
- have_posts()) : $post_my_query->the_post(); ?> - - - -

Oh no! There are no courses that match your filters.

- - - -
-
- - - - - - diff --git a/taxonomy-learning_partner.php b/taxonomy-learning_partner.php deleted file mode 100755 index 28438ed..0000000 --- a/taxonomy-learning_partner.php +++ /dev/null @@ -1,164 +0,0 @@ - 'learning_partner', - 'field' => 'slug', - 'terms' => sanitize_text_field(get_query_var('learning_partner')), - ) -); - -$post_args = array( - 'post_type' => 'course', - 'post_status' => 'publish', - 'posts_per_page' => -1, - 'ignore_sticky_posts' => 0, - 'tax_query' => $taxquery, - 'orderby' => 'name', - 'order' => 'ASC', - 'hide_empty' => 0, - 'hierarchical' => 1, - 'exclude' => '', - 'include' => '', - 'number' => '', - 'pad_counts' => true, -); -$post_my_query = null; -$post_my_query = new WP_Query($post_args); - -?> - - - -
-
-
- - All Courses - -
-

Partnername ?>

- -
- -
-
- -
- -
-
- Filters: - - - x - - x - - - - x - - x - - - x - - -
- have_posts() ) : ?> -
found_posts ?> courses
- have_posts()) : $post_my_query->the_post(); ?> - - - -

Oh no! There are no courses that match your filters.

- - - -
-
- - - - - - diff --git a/wp-bcgov-corp-learn-portal.php b/wp-bcgov-corp-learn-portal.php index 3cda6c2..c3ece63 100644 --- a/wp-bcgov-corp-learn-portal.php +++ b/wp-bcgov-corp-learn-portal.php @@ -390,7 +390,10 @@ function course_tax_template( $tax_template ) { global $post; $tax_template = dirname( __FILE__ ) . '/taxonomy.php'; if ( is_tax ( 'learning_partner' ) ) { - $tax_template = dirname( __FILE__ ) . '/taxonomy-learning_partner.php'; + $tax_template = get_stylesheet_directory() . '/taxonomy-learning_partner.php'; + } + if ( is_tax ( 'external_system' ) ) { + $tax_template = get_stylesheet_directory() . '/taxonomy-external_system.php'; } if ( is_tax ( 'audience' ) ) { $tax_template = dirname( __FILE__ ) . '/taxonomy.php'; @@ -404,9 +407,6 @@ function course_tax_template( $tax_template ) { if ( is_tax ( 'delivery_method' ) ) { $tax_template = dirname( __FILE__ ) . '/taxonomy.php'; } - if ( is_tax ( 'external_system' ) ) { - $tax_template = dirname( __FILE__ ) . '/taxonomy-external_system.php'; - } return $tax_template; }