How to Create An Archives Page
In another effort to de-clutter the sidebar and begin your initiation for The Organization for the Organized, here’s how to create an archives page for archive links listing by categories and months. First of all, check out the Wpdesigner’s archives page to see what you’ll be adding to your blog.
Second, most free WordPress themes already have an extra page template for an archives page. Look in your theme’s folder for an unused PHP template file. Usually, theme authors name this template archives.php, which is different from your default archive template, archive.php (without the “s”).
Third, you need to know that this tutorial is not the end-all tutorial for create a custom archives links listing page. The structure of each theme is not always exactly the same as the next theme’s structure. All I can show you is the basics and how I did it.
The Steps:
1. Create a new file and name it archives.php
2. At the top of that file, type:
/*
Template Name: Archives Page
*/
?>
Without those lines above, you won’t be able to use your new archives template file so be sure that you don’t leave that out.
3. Add the loop, title, category listing, and month listing:
4. Tweak the codes above to make it fit in with your current theme. Here’s where different theme structures come into play. I can’t give you my archives template because it might not work with your theme’s structure.
5. Upload it to your theme’s folder.
6. Create a new page and select your newly upload Archives page template for that page.


You could have the step 1 as “make a copy of your index.php and call it archives.php”.
This way it will work whatever theme people are using right now.
If they started with a copy of index.php, you can then ask them to remove the original loop code in the index.php and paste the loop code you mentioned.
Just an idea.
Sadish
Thanks for the tip Sadish. I didn’t think of that.
till now i didnt notice that i cud add archives page as well.. thanks again…
Cool tip, but there’s also a plugin that is able to do this:
http://www.geekwithlaptop.com/…
[...] 翻译自 Small Potato 的 How to Create An Archives PageÂ ï¼Œæœ‰åˆ èŠ‚ã€‚è¿™ç¯‡æ•™ç¨‹è®²è§£å¦‚ä½•åˆ›å»ºä¸€ä¸ªåˆ—å‡ºæ‰€æœ‰åˆ†ç±»å’Œæœˆä»½çš„å½’æ¡£é¡µé¢ï¼Œåœ¨è¿›è¡Œå‰ï¼Œå…ˆåŽ»çœ‹çœ‹ Small Potato 的归档页é¢çš„æ•ˆæžœã€‚ [...]
è°¢è°¢ä½ çš„æ–¹æ³•
当然也å¯ä»¥è®¿é—®æˆ‘的网站看一下
谢谢
http://tobe1.com.cn
This is a best tutorial…
What is the next?? we waiting for all,..
Thank So much SP,,you’r Rock…
[...] Small Potato çš„ How to Create An Archives Page [...]
25 неотÑтойных хаков Ð´Ð»Ñ WordPress
ДинамичеÑкое Ñлайдшоу в шапке — позволÑет крутить картинки в шапке вашего блока, придает динамику; демоверÑиÑ.
Пузырь комментариев — гр…
[...] Tutorials from Creating an Archive Index (codex.wordpress.org) and WPDesigner. [...]
[...] tutorials from Creating an Archive Index (codex.wordpress.org) and WPDesigner. Tags: design, [...]
hi,
i got a problem with the wp template that i downloaded from yr site. It has got nothing to do with this tutorial and i didn’t know where to contact you so……
Anyway the problem is that i could not change the message and the photo on the wp template which you can see at this url=http://www.soccer4unme. I found the about-box.php file and replaced the text with my own message but i couldn’t save the message as there is no option like “Save as”.
I got into my “presentation tab”, then “theme Editor” tab and under the ‘Wpdesigner5′ theme files on the left i went into “about-box.php” file and changed the message but i couldn’t save it.
Please advice since I like this template and want to keep it. Also please tell me how to change the photo on the same about-box.
I hope i will receive your email soon.
thanks
The problem is your theme files aren’t writable. Look up a tutorial on FTP Chmod and you’ll understand what I mean. For future questions, please use the support forums here: http://www.wpdesigner.com/forums
Note: It’s best to edit your files offline then re-upload them.
[...] The example below illustrats how to create an archives page listed by categories and months. [...]
[...] The example below illustrats how to create an archives page listed by categories and months. [...]
[...] tutorials from Creating an Archive Index (codex.wordpress.org) and WPDesigner. Tags: design, WordPress [...]
[...] Original tutorials from Creating an Archive Index (codex.wordpress.org) and WPDesigner. [...]
[...] The example below illustrats how to create an archives page listed by categories and months. [...]
Very helpful tutorial, thanks man!
Thanks! this is what I need.
5cThank’s for greate post.5p I compleatly agree with last post. fsu
??????? ?????? 0f
4gThank’s for greate post.6y I compleatly agree with last post. uvi
??????? 8w
thanks for this i wil apply this in my blogs
wow! i like this tutorial. will definitely try this in my blogs. Thanks!
[...] ?????? ??????????????Archvies???? [...]
[...] ?????? ??????????????Archvies???? [...]
[...] How to Create An Archives Page Submitted by: wpdesigner| Date: 11 22nd, 2008 | Category: Pages Views: 1 | Votes: 0 | [...]
Very helpful tutorial, thanks.
Thank’s for greate post!