Skip to content

Commit 6acd746

Browse files
committed
override archive__post_type as it is used as CSS class
1 parent fcb61b5 commit 6acd746

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ArchivePageComponent.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public function add_timber_context($context)
117117
]);
118118
break;
119119
}
120+
121+
// Override `archive__post_type` as it is used as a CSS class
122+
$context['post']->archive__post_type = $object_name;
120123
}
121124

122125
return $context;

0 commit comments

Comments
 (0)