Limit Archive Items Wordpress

1
Articles of Total Bounty How to Limit Archive Display in WordPress 2011-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. For many, displayed archived months adds to the blog owners reputation as it suggests how often you publish write-ups in your site.A few months of archived months displayed in your sidebar can be helpful but as it grows 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 blog when you start especially when you purchase a premium theme to use for your site. If you feel like changing 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 also choose to make to have “year” and not “monthly” as the type of displayed archive in your site depending on the age of your site. We recommend that you change the NUMBER to 6 since this is the most common, allowing your visitors to go back to your old post without having to clutter to your sidebar. You want to increase your reputation on 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 will be discussed in our future articles. So drop by our blog regularly and don’t forget to leave us a comment if you feel like sharing your thoughts on today’s blogpost. Ciao! Share this: Share

description

You can limit the number of items displayed in your archive section by following the steps in this tutorial. Simply add the snippet of code and follow the rest of the steps.

Transcript of Limit Archive Items Wordpress

Page 1: 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