Need WordPress or Thesis theme customizations? View my services for details.

Thesis Tutorial for Sitemap and Archives Pages

by George Serradinho on June 16, 2009




Submit to Shoutmeme.com

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 (184) 776 bytes

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.
Thesis - My Sitemap or Archives page layout

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.

      Submit to Shoutmeme.com   

Guest Posts

If you want to guest post on Serradinho, please visit our Guest Posting Guidelines

Bookmark/Share

Submit post to StumbleUpon Submit post to Twitter Submit post to Delicious Submit post to Digg Submit post to Reddit Submit post to Technorati Submit post to Facebook

Other Interesting Posts:


Author Information

Article by George Serradinho

I am the proud owner of Serradinho and have made this my second home. I'm into blogging, downloads, WordPress and the internet in general. I also love meeting and helping others and learning new techniques.

{ 1 trackback }

60 Wonderful And Helpful Thesis Customization Tutorials - Cash-Bandit.com
September 13, 2009 at 4:03 pm

{ 8 comments }

1 Ana June 18, 2009 at 2:47 am

Follow on Twitter Follow @TruAnaGoncalves on Twitter.



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 My ComLuv Profile

2 George Serradinho June 18, 2009 at 7:46 am

Follow on Twitter Follow @gfserradinho on Twitter.



@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.

3 Raj August 21, 2009 at 10:24 pm

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

4 Ruth Marie Sylte August 22, 2009 at 7:11 pm

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 My ComLuv Profile

5 George Serradinho August 24, 2009 at 7:21 am

Follow on Twitter Follow @gfserradinho on Twitter.



@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 :)

6 Tinh October 11, 2009 at 4:44 pm

Follow on Twitter Follow @eblogtip on Twitter.



Great, but I have a problem that the second column does not show my latest 50 posts, it show category instead: http://blogviet.info/sitemap/

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 ? My ComLuv Profile

7 Rajesh Kanuri November 18, 2009 at 2:27 pm

Follow on Twitter Follow @rajkanuri on Twitter.



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 My ComLuv Profile

8 George Serradinho November 18, 2009 at 5:56 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@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.


Previous post:

Next post: