From f579d5615af3883edb029d91f1a1d7da36dfbe45 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 20 Jun 2024 11:37:41 +0200 Subject: [PATCH] feat: add pagination support to article archive pages Enabled pagination in the article archive template to improve navigation and user experience. Updated functions to include pagination support in the theme setup. This change will help users browse through multiple pages of articles more conveniently. --- archive-article.php | 9 +++++++++ functions.php | 2 ++ 2 files changed, 11 insertions(+) diff --git a/archive-article.php b/archive-article.php index d517465..2128ed4 100644 --- a/archive-article.php +++ b/archive-article.php @@ -54,6 +54,15 @@

+
+
+ $loop->max_num_pages, + )); + ?> +
+
\ No newline at end of file diff --git a/functions.php b/functions.php index 2a26ae1..d4534a8 100644 --- a/functions.php +++ b/functions.php @@ -17,6 +17,8 @@ function duck_behavior_journal_setup() 'flex-height' => true, 'flex-width' => true, )); + + add_theme_support('pagination'); } add_action('after_setup_theme', 'duck_behavior_journal_setup');