If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hi, i use a widget to put Archive, Categories, Links etc, on the footer; i want to limit the Archive widget to 8 months links. I’ve changed this code (on footer.php)
<?php wp_get_archives('type=monthly'); ?>
<?php wp_get_archives('type=monthly&limit=2'); ?>
i’ve used 2 instead of 8 to test the code. But it is not work. Is possible to do this? Ad is possible to put a “More” link on the archive? Like this
Total 8 links (7 months + 1 more link)
I’ve partially solved with removing the widgets from “footer area” and with some mods on footer.php, now i have only one problem.. i have to add the link to the month not visualized on the list
Try to limit it to 7 and drag a text widget below the Archives, inside the text widget create a list with just one element like this one:
<li><a href="link_to_archive">Other Months</a></li>
After adding this inside the widget, save and in your wp-content/themes/display/style.css, add some styling to the widget to make it look like its a part of the Archive List. This might not be the best way to do it, but it would surely work. Hope this is helpful. :)
The topic ‘Limit the number of Archive links on footer’ is closed to new replies.