From 29accf73d0f6bf5e1003fe469342a2e5fa0a3872 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Tue, 23 Jul 2024 15:31:45 -0600 Subject: [PATCH] header jumping fix --- archive.php | 2 +- assets/js/st-nav.js | 3 +++ front-page.php | 1 + page-articles.php | 25 ++++++++++++++++++++++++- search.php | 2 +- single.php | 2 +- style.css | 27 +++++++++++++++++++++++++-- 7 files changed, 56 insertions(+), 6 deletions(-) diff --git a/archive.php b/archive.php index 1a8f1c3..a8a2da3 100644 --- a/archive.php +++ b/archive.php @@ -1,5 +1,5 @@ - +
+

Latest

diff --git a/page-articles.php b/page-articles.php index 2323b67..c08ff13 100644 --- a/page-articles.php +++ b/page-articles.php @@ -1,15 +1,37 @@ - +
25, 'post_status' => 'publish' ) ); $count = $wp_the_query->post_count; + $article_number = 0; if (have_posts()) { while (have_posts()) { the_post(); $category = get_the_category()[0]; $count++; + $article_number++; + if ($article_number == 1) { + $author = get_userdata( $post->post_author ); + ?> + +