Skip to content

Commit 1f2d158

Browse files
authored
Merge pull request #56 from happyprime/fix/archive-checks
Fix `is_archive()` checks
2 parents 0adecec + d25c3db commit 1f2d158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/class-se-template-loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function template_include( $template ) {
5656
}
5757

5858
// Handle taxonomy archives for event categories.
59-
if ( is_archive( 'se-event-category' ) ) {
59+
if ( is_tax( 'se-event-category' ) ) {
6060
$theme_templates = array(
6161
'archive-se-event.php',
6262
);
@@ -105,7 +105,7 @@ public static function template_include( $template ) {
105105

106106
// Determine if standard se-event archive templates are available in the theme
107107
// before replacing with the custom template in this plugin.
108-
if ( is_archive( 'se-event-date' ) ) {
108+
if ( is_post_type_archive( 'se-event-date' ) ) {
109109
$theme_templates = array(
110110
'archive-se-event.php',
111111
);

0 commit comments

Comments
 (0)