So, I have learned a few more tricks for Thesis that I would like to share with you. There are so many, but I will do my best to help out where I can.
You can always view other Thesis Customizations by viewing my other post
3 Basic Thesis Customizations
Today, I will show you how to create your own sitemap or archives page for Thesis theme. I searched a few places and then came up with the following and would like to share it with you.
Sitemap and Archives pages
This little hack can be used for both the sitemap and the archives page, which ever is needed by yourself. This will create 2 columns for your page, the first column having the Pages, Archives by Month and then by Category.
The second column just showing your last 50 posts, this number can be incremented if you like, you have to change the number by wp_get_archives from 50 to ….
You will see that the is_page is looking at ’955′ and ’953′, these are the post id’s that have been assigned to those particular pages. You will have to see what yours are and then just replace them.
You can simply put the PHP function into your custom_functions.php file and it will automatically do the rest. It just creates the 2 columns for the information to be displayed in. You can play around with the column widths as you please. This all depends on your content width of your site. My site shows the sidebars, which makes the content width the same as my other pages or posts.
Then simply put the CSS styling code into your custom.css file and it will automatically do the rest.
Download:
Thesis Tutorial - Sitemap and Archives Pages
The download was made available on 25 November 2009 and is in zip format. The file size is 776 bytes and has currently been downloaded 367 times.
I have edited this post and put the CSS and PHP in a text file. Download the zipped file and get it working on your site in less than 10 minutes.
Below is an image of how it will look at the end. You could always have the above code just for the sitemap or the archives page, I wanted to have both on my site.

I hope to release a post every week or two about Thesis customizations until I have covered most of what is on my site. So please come back to have a look, you might find something for your site.
Let me know if you need any assistance with the above details and what you think of the customization. I’m eager to hear what you think.
I am the proud owner of Serradinho.com and have made this my second home. I'm into blogging, downloads, WordPress, meeting and helping others, etc. Basically the internet in general :) Serradinho Web Services is my own company whereby I offer my services to clients. This ranges from web design, website upgrades, theme customizations, support, premium WordPress plugins and many more .....
View all posts by George Serradinho, there might be other posts that interest you.







{ 8 comments }
Thanks for this!
Extremely helpful.
I have been looking on and off for a similiar Archives coding/feature like this for a while, but have found the ones that have added have made my site rather slow. This one sounds smooth and clean cut, and I like the options that it carries. May test this out one soon.
Thanks again.
.-= Ana´s last blog ..Wordless Wednesday #6 Musical Energy =-.
@Ana – I also looked all over and eventually found this and made my changes to it. You can look at the WordPress Codex and add more things if you like.
Hello Serradinho,
I am getting Parse Error for Question Mark in 2nd line of code for sitemap archieves, can you please throw more light on the same ?
I have recently started designing my blog, but facing this issues in the above code implementation for thesis 1.51 version
The coding above seems to have been stripped or changed and uses codes instead of the actual characters. I finally got those edited and they must be working because I no longer have any error messages.
However, you say:
“You will see that the is_page is looking at ‘955′ and ‘953′, these are the post id’s that have been assigned to those particular pages. You will have to see what yours are and then just replace them.”
Where do I find those page IDs? Do I need to create pages? I cannot find clear information on creating an archive page in Thesis.
.-= Ruth Marie Sylte´s last blog ..The cultural blinders that led to the IE6 mess =-.
@Ruth Marie Style – when you create a page and edit it, it will show you your post_id in the status bar on top. Copy that id to the code and it should work. Let me know if you came right
Great, but I have a problem that the second column does not show my latest 50 posts, it show category instead:
Do I need to choose template as archive or set as default? I make it as default. Thanks
.-= Tinh´s last blog ..Chọn HTML Sitemap hay XML Sitemap ? =-.
I using Google XML Sitemap plugin .. could please tell me how far it is beneficial to use the method you said and one more Question i m using thesis 1.6 is this tutorial valid for thesis 1.6??
.-= Rajesh Kanuri´s last blog ..Check Out My Exclusive Interview by Devang At SpeakBindas =-.
@Rajesh – you don’t have to use the method I described, it’s your choice. It should work fine with thesis 1.6 as I’m using it and there are no issues.
Comments on this entry are closed.
{ 1 trackback }