Skip to content

Commit

Permalink
Move tax templates to theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
allanhaggett committed Jul 9, 2024
1 parent 2527794 commit 006dfa3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 332 deletions.
164 changes: 0 additions & 164 deletions taxonomy-external_system.php

This file was deleted.

164 changes: 0 additions & 164 deletions taxonomy-learning_partner.php

This file was deleted.

8 changes: 4 additions & 4 deletions wp-bcgov-corp-learn-portal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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;
}

Expand Down

0 comments on commit 006dfa3

Please sign in to comment.