{"id":6676,"date":"2022-07-28T18:55:46","date_gmt":"2022-07-28T09:55:46","guid":{"rendered":"https:\/\/the-world-star.com\/?p=6676"},"modified":"2026-11-19T14:05:51","modified_gmt":"2026-11-19T05:05:51","slug":"how-to-clean-up-and-shorten-a-long-wordpress-archive-list","status":"publish","type":"post","link":"https:\/\/the-world-star.com\/en\/server\/how-to-clean-up-and-shorten-a-long-wordpress-archive-list-6676\/","title":{"rendered":"How to Clean Up and Shorten a Long WordPress Archive List"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">After importing some old posts, my archive list suddenly spanned over a decade. Because it displays every month like \"July 2022\" stacked vertically, it became way too long and honestly looked pretty messy. When I looked online, I found a few different approaches, but none of them felt like a definitive fix\u2014and there doesn't seem to be a standard best practice. Right now, I'm just having fun working through it through trial and error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Options<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use the default WordPress Archive block settings, which let you choose between yearly, monthly, weekly, or daily displays.<\/li>\n\n\n\n<li>Install the \"Compact Archives\" plugin.<\/li>\n\n\n\n<li>Modify the template's PHP so that archive retrieval uses \"months\" for recent posts and \"years\" for older ones.<\/li>\n\n\n\n<li>Modify functions.php to apply a filter to the archive query, grouping months under their respective years.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">I listed those in order of quickness, but during my research, I actually discovered them in the order of 3 -&gt; 4 -&gt; 2 -&gt; 1. That naturally got me greedy about wanting a customized display and tinkering with PHP.<br>Ultimately, what I want to achieve is a mix of 3 and 4: grouping months by year for recent posts, while displaying older posts purely by the year.<br>I'll be updating this page as I research, test, and implement this goal.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Option 1: Fine-tuning the Block Settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can configure block displays for sidebars and footers under Appearance &gt; Widgets. There's an archive display option there where you can tweak settings like \"Display as dropdown\" or \"Show post counts.\" However, it's a bit clunky and not quite what I want. Ideally, I want recent posts linked by month and older posts grouped broadly by year. Still, playing around with it was a good way to learn more about blocks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"316\" height=\"359\" src=\"http:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31095728\/Screenshot-from-2022-07-31-09-57-08.png\" alt=\"\" class=\"wp-image-2578\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31095728\/Screenshot-from-2022-07-31-09-57-08.png 316w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31095728\/Screenshot-from-2022-07-31-09-57-08-264x300.png 264w\" sizes=\"auto, (max-width: 316px) 100vw, 316px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"869\" height=\"270\" src=\"http:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31100218\/Screenshot-from-2022-07-31-10-01-56-e1659229477972.png\" alt=\"\" class=\"wp-image-2579\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31100218\/Screenshot-from-2022-07-31-10-01-56-e1659229477972.png 869w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31100218\/Screenshot-from-2022-07-31-10-01-56-e1659229477972-300x93.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31100218\/Screenshot-from-2022-07-31-10-01-56-e1659229477972-768x239.png 768w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Option 2: Installing the \"Compact Archives\" Plugin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This might be the fastest route, but it formats everything uniformly as \"2022:07 06 05.\" Having seen options 3 and 4, I really want that hybrid look. I'll give those a serious shot first, and fall back on the plugin if things get too messy.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"459\" height=\"103\" src=\"http:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31100935\/Screenshot-from-2022-07-31-10-08-32.png\" alt=\"\" class=\"wp-image-2580\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31100935\/Screenshot-from-2022-07-31-10-08-32.png 459w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31100935\/Screenshot-from-2022-07-31-10-08-32-300x67.png 300w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br><a href=\"http:\/\/blog.nyuumon.net\/wordpress%E3%81%AE%E3%82%A2%E3%83%BC%E3%82%AB%E3%82%A4%E3%83%96%E3%82%92%E5%B9%B4%E5%8D%98%E4%BD%8D%E3%81%A7%E8%A8%98%E4%BA%8B%E6%95%B0%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%81%97%E3%82%A6%E3%82%A3\/#wordpressjQuery_Archive_List_Widget\">\"jQuery Archive List Widget\"<\/a>Apparently, this is another alternative worth noting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Option 3: Modifying the Display PHP (Using Conditionals for Months vs. Years)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Reference site:<br><a href=\"https:\/\/qiita.com\/noqua\/items\/02307a2f45f61c882714\">https:\/\/qiita.com\/noqua\/items\/02307a2f45f61c882714<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This one is pretty nice.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Catch<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There are a few drawbacks. The guide mentioned editing files like sidebar.php, but it wasn't entirely clear where to make the changes. For now, I just modified the sidebar section within the Lightning theme I've been customizing, and it started displaying correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The issue with this method is that you have to make changes in two places: wherever the Archive block is used, and anywhere it isn't. Plus, I've customized the Lightning theme so much that I'm getting nervous about theme updates wiping out my changes. Option 4, on the other hand, involves adding code to functions.php, which feels much safer. Furthermore, since it hooks directly into the core archive retrieval function, it applies uniformly whether you're using blocks or site PHP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So I'm testing this out now, and I suspect the final solution will be a hybrid of 3 and 4. It would be awesome if I could just build a small auxiliary plugin for this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By the way, while doing this, I ran into another mystery that had been bugging me: the \"Lightning theme displays categories twice\" issue. I'll write an article explaining that and its solution separately. Tinkering with this has definitely given me a better grasp of how WordPress works under the hood.<\/p>\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\t\t\t<div class=\"blog-card\">\n\t\t\t\t<div class=\"blog-card-body-outer\">\n\t\t\t\t\t<div class=\"blog-card-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<h5 class=\"blog-card-title\">\n\t\t\t\t\t\t\t\t<a href=\"https:\/\/the-world-star.com\/en\/server\/fixing-duplicate-archives-and-categories-in-wordpress-lightning-theme-6674\/\">Fixing Duplicate Archives and Categories in WordPress Lightning Theme<\/a>\n\t\t\t\t\t\t\t<\/h5>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"blog-card-text\">\n\t\t\t\t\t\t\t\tBy default, the Lightning theme displays categories twice on single post pages. Also, even though I set the homepage to a 2-column layout, it wouldn&#039;t display \u2026\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"blog-card-site-title\">\n\t\t\t\t\t\t\t<a href=\"http:\/\/the-world-star.com\/en\/\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tThe\u2606World Star\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"blog-card-image-outer\">\n\t\t\t\t\t\t<a href=\"https:\/\/the-world-star.com\/en\/server\/fixing-duplicate-archives-and-categories-in-wordpress-lightning-theme-6674\/\" class=\"blog-card-image-frame\">\n\t\t\t\t\t\t\t<img decoding=\"async\" class=\"blog-card-image-src\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31115522\/server_eyecatch.jpg\" alt=\"\">\n\t\t\t\t\t\t<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t<\/div><\/figure>\n\n\n<h2 class=\"wp-block-heading\">Option 4: Adding a Filter to the Archive Retrieval Function<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Adding get_archives_link() Filter Code to functions.php<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I followed this site as a reference:<br><a href=\"https:\/\/usortblog.com\/widgetarchiveshorter\/\">https:\/\/usortblog.com\/widgetarchiveshorter\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By writing custom code in functions.php, you can filter the HTML string output generated by existing code and modify it.<br>The Lightning theme actually has two functions.php files, and changes to either seem to work. There's one under the `_g3` subfolder and one directly under the main Lightning folder. I ended up editing the upper-level one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Issues Encountered<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The snippet wasn't quite plug-and-play, so I had to make a few tweaks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. The link URLs were hardcoded as \"\/site-url\/year\/month\/\"<br>My site uses \"\/site-url\/date\/year\/month\", so the code didn't work out of the box. I could have just added \"date\" manually, but I figured I should just use the original URLs properly. After digging into PHP, I settled on using regular expressions to extract paths enclosed in single quotes. I always forget regex syntax, so I end up having to look it up every single time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. This filter gets called for yearly views as well as monthly views, which resulted in blank outputs for yearly listings.<br>I wasn't using this on the live server yet, but I noticed it on my local test server where I had configured items older than 12 months to display by year only. There might be other edge cases, but I updated it to only run the logic when the string contains \"month,\" and return the original string otherwise. (Note: It also gets called for \"weeks\" and \"days.\")<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Years with no posts in December wouldn't display their year heading, because the script was using December as the key. I realized this later and fixed it by tracking whether it was the first entry for that year using a flag.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. If the current year has posts but the current month has none, the year fails to display.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. Extra HTML tags were showing up.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Current Code<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* \u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u8868\u793a\u3055\u308c\u308b\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u77ed\u304f\u8868\u793a\u3055\u305b\u307e\u3059\n * 1.\u30ea\u30f3\u30af\u304c\/\u30b5\u30a4\u30c8url\/2022\/07\u3068\u3044\u3046\u3088\u3046\u306b\u56fa\u5b9a\u3055\u308c\u308b\u3002\u30ea\u30f3\u30af\u306f\u8a2d\u5b9a\u6b21\u7b2c\u3067\u5909\u308f\u308b\u306e\u3067\u3001\u30ea\u30f3\u30af\u306f\u305d\u306e\u307e\u307e\u4f7f\u3044\u305f\u3044\u3002 \u2192\u89e3\u6c7a\n * 2.\u6708\u3084\u9031\u3084\u65e5\u3067\u6307\u5b9a\u3055\u308c\u305f\u5834\u5408\u306e\u8003\u616e\u304c\u306a\u3044 \u2192\u89e3\u6c7a\n * 3.12\u6708\u306b\u8a18\u4e8b\u304c\u306a\u3044\u5e74\u306f\u5e74\u8868\u793a\u304c\u3055\u308c\u306a\u3044 \u2192\u89e3\u6c7a\n * 4.\u4eca\u6708\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u306a\u3044\u3068\u5e74\u8868\u793a\u304c\u3055\u308c\u306a\u3044 \u2192\u89e3\u6c7a\n * 5.\u4eca\u5e74\u306e\u8a18\u4e8b\u3057\u304b\u306a\u304f\u3001\u4eca\u6708\u306e\u8a18\u4e8b\u304c\u306a\u3044\u5834\u5408\u30012\u56de\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u547c\u3070\u308c\u308b\u3068\u5e74\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3002\u2192\u672a\u89e3\u6c7a\n * \u6708\u8868\u793a\u306e\u5f8c\u4e0d\u8981\u306ahtml\u30bf\u30b0\u304c\u51fa\u3066\u3044\u308b\u300c&lt;\/a&gt;&lt;\/li&gt;\u300d \u2192\u89e3\u6c7a\n * \u3082\u3046\u30ac\u30f3\u30ac\u30f3\u4f5c\u308a\u5909\u3048\u307e\u3059\n *\/\nfunction my_archives_link($link_html){\n    $currentMonth = date('n');\n    $currentYear = date('Y');\n\n\/\/\u5e74\u6307\u5b9a\u306e\u5834\u5408\u306f\u4f55\u3082\u3057\u306a\u3044\n    if(strpos($link_html,'\u6708') != true){\n      return $link_html;\n    }\n\n\/\/\u5e74\/\u6708\/(\u65e5\u3067\u3082OK?)\u306e\u5834\u5408\n    \/\/ \u30a2\u30fc\u30ab\u30a4\u30d6\u306e\u5e74\u6708HTML\u3092\u7de8\u96c6\n    $ym = explode('\u5e74', $link_html);        \/\/ym&#91;0]=&lt;li&gt;&lt;a href='http:\/\/localhost\/?m=202206'&gt;2022 ym&#91;1]=6\u6708&lt;\/a&gt;&lt;\/li&gt; \n    $monthArray = explode('\u6708', $ym&#91;1]);    \/\/$monthArray&#91;0]=6 &#91;1]=&lt;\/a&gt;&lt;\/li&gt;\n    $month = $monthArray&#91;0];                \/\/=6\n    $year = intval(strip_tags($ym&#91;0]));\t    \/\/2022 remove php html tags\n    \/\/$linkMonth = substr('0'.$month, -2);    \/\/0+\u6708\u306e\u5f8c\u308d2\u6587\u5b57 012 \u2192 12, 07\u219207\u30012\u6841\u306b\u3057\u3066\u3044\u308b \u3044\u3089\u306a\u3044\n\n    \/\/\u30ea\u30f3\u30af\u5148\n    preg_match_all('\/'.+?'\/', $ym&#91;0], $urlArray);\/\/\u6b63\u898f\u8868\u73fe\u3067''\u3067\u56f2\u307e\u308c\u305fURL\u3092\u62bd\u51fa\n    $url = $urlArray&#91;0]&#91;0];\n    \/\/echo '$urlEX =';echo $url;var_dump ($linkMonthArray); \/\/for debug\n\t   \n    $linkMonth  = '&lt;a href='.$url.' style=\"white-space: nowrap;\"&gt;'.$month.'\u6708&amp;nbsp;&lt;\/a&gt;';\n    $linkYear   = '';  \/\/\u6761\u4ef6\u306b\u3088\u308a\u751f\u6210\u3059\u308b\n    $formatYear = '&lt;span style=\"font-weight:bold;\"&gt;%s\u5e74&lt;\/span&gt;&lt;br \/&gt;';\n\n\/\/$linkYear\u3092\u6761\u4ef6\u306b\u3088\u308a\u4f5c\u6210\u3057\u3001$_SESSION&#91;'printyear']\u3092\u4eca\u51e6\u7406\u4e2d\u306e\u5e74\u3092\u5165\u308c\u308b\u3002\u3053\u308c\u306f1\u5e74\u306b1\u5ea6\u3057\u304b\u51e6\u7406\u3055\u305b\u306a\u3044\u305f\u3081\n    \/\/\u4eca\u307e\u3067\u51fa\u529b\u3057\u3066\u3044\u305f\u5e74\u3068\u306f\u9055\u3046\u5834\u5408\uff1d\u521d\u3081\u3066\u305d\u306e\u5e74\u3092\u51fa\u529b\u3059\u308b\u3068\u304d\n    if ($_SESSION&#91;'printyear']!=$year) {  \/\/\u521d\u671f\u5024\u306f\"\"\u7a7a\u767d\u3067\u3042\u308b\u30022\u56de\u76ee\u4ee5\u964d\u547c\u3073\u51fa\u3055\u308c\u308b\u3068\u6700\u5f8c\u306b\u51e6\u7406\u3057\u305f\u5e74\u3068\u306a\u308b\n      \/\/\u203b\u4eca\u5e74\u306e\u8a18\u4e8b\u3057\u304b\u306a\u3044\u5834\u5408\u306b2\u56de\u76ee\u306b\u547c\u3070\u308c\u308b\u3068$_SESSION&#91;'printyear']\u304c\u4eca\u5e74\u304b\u3089\u66f4\u65b0\u3055\u308c\u306a\u3044\u306e\u3067\u5f15\u3063\u304b\u304b\u3089\u306a\u3044\n      $linkYear = sprintf($formatYear, $year);  \/\/1\u5e74\u76ee\u300c\u5e74+\u6539\u884c\u300d\n      $_SESSION&#91;'printyear']=$year;           \/\/&#91;\u5e74+\u6539\u884c]\u51fa\u529b\u3057\u305f\u5e74\u3092\u8a18\u9332\n      if($currentYear != $year){        \/\/\u4eca\u5e74\u3067\u306f\u306a\u3044\u5834\u5408\n\t$linkYear = '&lt;br \/&gt;'.$linkYear; \/\/\u3055\u3089\u306b\u982d\u306b&#91;\u6539\u884c]\u3092\u52a0\u3048\u308b\u300c&#91;\u6539\u884c]+\u5e74+&#91;\u6539\u884c]\u300d\n      }\n    }\n    \/\/2\u56de\u76ee\u306b\u547c\u3070\u308c\u305f\u6642\u306e\u5bfe\u7b561.\uff1a\u4eca\u6708\u3060\u3063\u305f\u3089\u9593\u9055\u3044\u306a\u3057\u3002\u4e0d\u5341\u5206\u3002\u4eca\u6708\u66f8\u3044\u3066\u306a\u304b\u3063\u305f\u3089\u30c0\u30e1\n    else if (($currentMonth == $month) AND ($currentYear == $year)){\n      $linkYear = sprintf($formatYear, $year);  \/\/1\u5e74\u76ee\u300c\u5e74+\u6539\u884c\u300d\n      $_SESSION&#91;'printyear']=$year; \/\/&#91;\u5e74+\u6539\u884c]\u51fa\u529b\u3057\u305f\u5e74\u3092\u8a18\u9332 \n    }\n    \/\/\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f\u521d\u671f\u5024$linkYear = ''\n\n    \/\/'&#91;\u6539\u884c]or&#91;\u7121]2020&#91;\u6539\u884c]' or '\u7121' + '&lt;a href='.$url.' style=\"white-space: nowrap;\"&gt;6\u6708&lt;\/a&gt;'\n    return $linkYear.$linkMonth;  \/\/$link_html\u3092$linkYear + $linkMonth\u306b\u52a0\u5de5\u3057\u3066\u8fd4\u3059\n}\nadd_filter('get_archives_link', 'my_archives_link');\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Resulting Display<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is the result of combining 3 and 4. Thanks to #3, the 12 most recent months are shown individually, while anything older is grouped by year. Furthermore, for the monthly view, instead of redundantly showing \"July 2022 [line break] June 2022\", filter #4 ensures the year like 2022 only appears once as a header, followed by a clean list of months.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"406\" height=\"511\" src=\"http:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/28185514\/Screenshot-from-2022-07-28-18-54-56.png\" alt=\"\" class=\"wp-image-2520\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/28185514\/Screenshot-from-2022-07-28-18-54-56.png 406w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/28185514\/Screenshot-from-2022-07-28-18-54-56-238x300.png 238w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This is what it looks like after resolving issues 1 and 2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I felt pretty good about it at this point, but I later realized that some older articles lacked posts in December. Disabling the workaround in #3 made them visible, but that pattern still wasn't rendering the year headings correctly.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After sorting out the issues with steps 3 and 4:<br>5. If there are posts from this year, but none from this current month, and the archive function is called twice, the year fails to display. -&gt; Unresolved<br>Since calling the function twice is avoidable, maybe I should just call it a day? Lightning calls it twice by default, so be sure to check out my next troubleshooting post for the fix.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Editing PHP Code<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Up until now, I've been SSHing into the server via shell and editing code with Emacs\u2014specifically, testing things in a local environment and uploading them to the server once they were done.<br>Turns out, you can easily do this right inside WordPress too.<br>If you go to Appearance &gt; Theme File Editor, you can edit PHP and other theme files. The best part is that it checks your syntax for errors when you save. That said, sometimes Japanese comment encodings get messed up and trigger errors anyway. Still, this method is super convenient for copy-pasting other people's code or making quick tweaks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"439\" height=\"343\" src=\"http:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31084755\/Screenshot-from-2022-07-31-08-47-10.png\" alt=\"\" class=\"wp-image-2572\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31084755\/Screenshot-from-2022-07-31-08-47-10.png 439w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31084755\/Screenshot-from-2022-07-31-08-47-10-300x234.png 300w\" sizes=\"auto, (max-width: 439px) 100vw, 439px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"313\" height=\"337\" src=\"http:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31085123\/Screenshot-from-2022-07-31-08-46-48.png\" alt=\"\" class=\"wp-image-2573\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31085123\/Screenshot-from-2022-07-31-08-46-48.png 313w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2022\/07\/31085123\/Screenshot-from-2022-07-31-08-46-48-279x300.png 279w\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>After importing some old posts, my archive list suddenly spanned over a decade. Because it displays every month like \"July 2022\" stacked vertically, it became way too long and honestly looked pretty messy. When I looked online, I found a few different approaches, but none of them felt like a definitive fix\u2014and there doesn't seem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2098,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/175.41.248.22\/?p=2517","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[3],"tags":[1243,67,68],"class_list":["post-6676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-archives","tag-server","tag-wordpress","en-US"],"_links":{"self":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/comments?post=6676"}],"version-history":[{"count":2,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6676\/revisions"}],"predecessor-version":[{"id":6678,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6676\/revisions\/6678"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media\/2098"}],"wp:attachment":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media?parent=6676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/categories?post=6676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/tags?post=6676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}