Technology Stacks for Navigating Narrative: Wordpress >> PopUp Archive >> OHMS
Limit Archive Items Wordpress
-
Upload
john-pratt -
Category
Documents
-
view
212 -
download
0
description
Transcript of Limit Archive Items Wordpress
Articles of Total BountyHow to Limit Archive Display in WordPress2011-11-30 16:11:41 Total Bounty
Your archived months is a great way to let your readers know about how long have you been blogging. Formany, displayed archived months adds to the blog owners reputation as it suggests how often you publishwrite-ups in your site.A few months of archived months displayed in your sidebar can be helpful but as itgrows it eats up valuable space.
If you come and check your site’s code in sidebar.php you will see the following code:
<h2>Archives</h2><ul><?php wp_get_archives(‘type=monthly’); ?></ul>
The code is a standard code and has a uniform purpose. It is basically what you will have in your blogwhen you start especially when you purchase a premium theme to use for your site. If you feel likechanging it anytime soon, you may do so by changing the above’s code to the code below:
<h2>Archives</h2><ul><?php wp_get_archives(‘type=monthly&limit=NUMBER’); ?></ul>
Change NUMBER to your preferred number of displayed archived months in your site. You may alsochoose to make to have “year” and not “monthly” as the type of displayed archive in your site dependingon the age of your site.
We recommend that you change the NUMBER to 6 since this is the most common, allowing your visitorsto go back to your old post without having to clutter to your sidebar. You want to increase your reputationon the web but you also want to achieve balance in terms of style and its overall looks.
You may also choose to create your own custom archive page in your site using WordPress and that willbe discussed in our future articles. So drop by our blog regularly and don’t forget to leave us a comment ifyou feel like sharing your thoughts on today’s blogpost. Ciao!
Share this:Share