diff --git a/404.php b/404.php
index 2a75ece..1bea19c 100644
--- a/404.php
+++ b/404.php
@@ -6,7 +6,7 @@
)
);
-jf_get_main_template_part(
+jf_get_main_template_part_single(
array(
'templates/content/404',
)
diff --git a/archive.php b/archive.php
index db2b635..6536e98 100644
--- a/archive.php
+++ b/archive.php
@@ -6,15 +6,15 @@
)
);
-jf_get_main_template_part(
+jf_get_main_template_part_archive(
array(
'templates/content/archive',
'templates/snippets/pager'
)
);
-jf_get_sidebar_template_part(
+jf_get_sidebar_template_part(
array(
)
-);
\ No newline at end of file
+);
diff --git a/functions/jf-base.php b/functions/jf-base.php
index 996e32e..196706c 100644
--- a/functions/jf-base.php
+++ b/functions/jf-base.php
@@ -51,7 +51,7 @@ function jf_get_main_header_template_part( $templates ) {
}
}
-function jf_get_main_template_part( $templates ){
+function jf_get_main_template_part_single( $templates ){
print '';
foreach ( $templates as $template ) {
get_template_part( $template );
@@ -59,6 +59,14 @@ function jf_get_main_template_part( $templates ){
print '';
}
+function jf_get_main_template_part_archive( $templates ){
+ print '';
+ foreach ( $templates as $template ) {
+ get_template_part( $template );
+ }
+ print '';
+}
+
function jf_get_sidebar_template_part( $templates ){
if( !empty($templates) ) {
print '