Secrets of WP Theming: Part 1

Featured Article on the 9rules network

Today I am beginning a series on some of the lesser known features of the Theme System in WordPress 1.5 , I am not sure how many parts there will be, might be just this one.  But don't count on it.  Here are Part 2 and Part 3.

So lets talk about Custom Templates, and more importantly how we can bend them to our will.  Now I am assuming that by now everyone has at least a passing familiarity with Templates in WP 1.5, for those who are not up-to-speed, lets cover some back-story.

In the beginning were Templates, and lo they were good.

Templates are the foundation of the WP theme system, and one of the most powerful features, in my opinion, in 1.5.  A template defines the layout and "feel" of different aspects of your WP powered site.

There are a number of templates that are strictly defined in WP, they are as follows (list taken from the codex):

  1. style.css
  2. index.php
  3. comments.php
  4. comments-popup.php
  5. home.php
  6. single.php
  7. page.php
  8. category.php
  9. author.php
  10. date.php
  11. archive.php
  12. search.php
  13. 404.php

For instance, I have a template that defines the look of my index, one that defines viewing single posts and one for category listings.  Each one has different structure, CSS and WP function calls based on its purpose.  The one thing they all have in common is the_loop, or the bit of code that tells WP to spit out the appropriate posts for a specific area of my site.

So class, are we all caught up on templates?  Good, well what happens when we want to add a page to our site that doesn't have anything to do with our posts or categories?

Say we want to add an archives page like the one here at Sillyness to our sites?

Again we turn to Templates, more specifically Custom Templates.

Templates, Posts, Pages and Plugins

Now we have already stated that there are a number of strictly defined templates in WP.  But there is also another category of templates, ones that can be anything, can be called anything and can be applied to any "Page" you create in WP.  It is here with Custom Templates that the fun begins.

It is a little known fact that you can apply custom templates to blank "Pages" in WP.  What I mean is that you can create a completely blank page in WordPress and then apply a custom theme laden with code to it.  As an example lets look at the archives page here at Sillyness.

If you were to look at the page I created in WP named Silly Archives, the "Page Content" area would be completely blank.  If you then opened my custom template you would see a whole mess o' code, and interestingly enough the_loop is no where to be found.  In fact the only WP core code that you would find would be get_header(); and get_footer();

The rest is either embedded code, or plugin calls.

So let's get into some code.

So back to our hypothetical example.  Our first step would be to create the custom template that will be applied to our Archives page.  Because we do not re-invent the wheel, we will be making use of Shawn Grimes Clean Archives plugin, and my Commenter Heat Map plugin.

So first things first, every custom template must start with the following code:

<?php 
/*
Template Name: Archives Template
Description: A template for my archives pages.
*/
?>

In addition for this particular page we need to add a call to wp-blog-header.php so our opening code will actually look like this:

<?php
require('./wp-blog-header.php');
/*
Template Name: Archives Template
Description: A template for my archives pages.
*/
?>

Next we call for our header.php file and start adding our content:

<?php get_header(); ?><div class="main"><h2>Here are the archives for <?php bloginfo('name'); ?>.
</h2><p>Search the archives.
</p><div class="search"><form method="get" id="searchform" action="/index.php"><input type="search" value="Search" name="search" id="s" /><input type="submit" id="submit" name="Submit" value="Go!" /></form></div>

Now you could have put some of this in the "Page Content" area of the 'Create Page' screen, but for this demo we want to have everything in the template, so on we go.

<?php echo srg_clean_archives(); ?><h2>Commenter Heat Map
</h2><p>Below is a heat map of the commenters here.
</p><?php cjd_comment_heat(); ?></div>

And finally we close with the footer call:

<?php get_footer(); ?>

And that is the entire template, now we save it as new_archive.php and upload it to our /wp-content/themes/ourtheme/ folder, then log into our WP admin area to create a new Page.

Lastly we need to create a blank Page and link it up with our new template.

So let's go to Write > Write Page and get to business.  First off we need to give our page a title, let's say My Archives, once that is done we can skip down past the "Page Content" area to "Page Options".

The first field should be Page Template, and in the drop down box we should find Archives Template, select that and click Create New Page.  That's it, if you have installed and activated the plugins, when you load http://my.site/my-archives/ you should see your lovely new Archives page.

Well that's it for the first of this series.  I hope you have had as much fun as I have.  If you have any questions, leave them here in the comments and I will do my best to answer them.

Tagged:

  1. personal avatar clintcommenter rank
    Stroll on over and visit clint
    March 1, 2007

    Just one of Chris' many gifts, a good amount of people are experienced and know alot, but only a handful of them can relate it with clear understanding so that the unlearned can grasp it, and better yet impliment it.

    I'm quite anxious to learn from this series, and do my best to pass it on...

  2. personal avatar Chris J. Daviscommenter rank
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    Yeah sorry about that. I am going to be publishing a revised version of each of these articles on the codex when I am done.

  3. personal avatar Basilcommenter rank
    Stroll on over and visit Basil
    March 1, 2007

    Wish I'd had this before I went slogging through codex.wordpress.com. This makes a little more sense than what I found there.

  4. personal avatar skippycommenter rank
    Stroll on over and visit skippy
    March 1, 2007

    Great work, Chris. Thanks for sharing.

  5. personal avatar seriocomiccommenter rank
    Stroll on over and visit seriocomic
    March 1, 2007

    I for one am very appreciative of the time and effort people such as yourself take to document these basic, yet somewhat confusing topics. Thanks :)

  6. personal avatar Jennifercommenter rank
    Stroll on over and visit Jennifer
    March 1, 2007

    Oh this is going to be great Chris. Thank you so much for providing the information!

  7. personal avatar Shawn Grimescommenter rank
    Stroll on over and visit Shawn Grimes
    March 1, 2007

    Nicely done Chris. You've taken something that has been trivial to quite a few people and turned it into an easy process. Thanks for the pimpage too.

  8. personal avatar Arnocommenter rank
    Stroll on over and visit Arno
    March 1, 2007

    If there is one thing missing in the WP package right now, this is this kind of greatly understandable explanations and documentation ! Well done Chris !

  9. personal avatar Indranilcommenter rank
    Stroll on over and visit Indranil
    March 1, 2007

    Thank you for the great post. Couldn't come at a sweeter time :)

  10. personal avatar kartoonercommenter rank
    Stroll on over and visit kartooner
    March 1, 2007

    Fantastic, Chris. Thanks for taking the time to outline this!

  11. personal avatar Joachim Guanzoncommenter rank
    Stroll on over and visit Joachim Guanzon
    March 1, 2007

    This is great, thanks, now I can start making my own and not relying on editing default templates.

  12. personal avatar Steve Smithcommenter rank
    Stroll on over and visit Steve Smith
    March 1, 2007

    Nice work Chris. I've been meaning to do a tutorial like this for a while, but you beat me to it. Well done.

  13. personal avatar Rootcommenter rank
    Stroll on over and visit Root
    March 1, 2007

    There is something about templates in WP that is deeply unfathomable when you get started - and so simple once you understand it - this is a really great tutorial bridging that gap, explaining the mysteries and hopefully helping folk step over their apprehension. :)

  14. personal avatar charcommenter rank
    Stroll on over and visit char
    March 1, 2007

    Oh for peets sake I went through Codex too and I got a little lost so I resulted to reading books on CSS and whatnot and I'm sure this will definately help shed some light ;)

  15. personal avatar Davidcommenter rank
    Stroll on over and visit David
    March 1, 2007

    I found the best way was to deconstruct a template that looked the most like what I was going to end up with when I was done, but this series will probably be way better... Good stuff.

  16. personal avatar Olivercommenter rank
    Stroll on over and visit Oliver
    March 1, 2007

    Great write up! This information will definitely get beginners started.

  17. personal avatar craigcommenter rank
    Stroll on over and visit craig
    March 1, 2007

    Well done, Chris! Another feather in your cap, to be sure.

  18. personal avatar Aaron Brazellcommenter rank
    Stroll on over and visit Aaron Brazell
    March 1, 2007

    Excellent. I love it when people think outside the box.

  19. personal avatar Brendancommenter rank
    Stroll on over and visit Brendan
    March 1, 2007

    Chris,

    Nice work. You explain the basics well - which I can never do right. Very cool article. :)

  20. personal avatar Margicommenter rank
    Stroll on over and visit Margi
    March 1, 2007

    Nice! Thank you so much for explaining in a straight-forward, clear manner. I look forward to future articles as well.

  21. personal avatar Jalenackcommenter rank
    Stroll on over and visit Jalenack
    March 1, 2007

    Flawless article, great job. I was trying to figure this out only yesterday. Although, I'm wondering if the srg_nice_archives() function could be pulled off without ~50 queries. My query total on my archives is 81...Thanks in any case!

  22. personal avatar Stevecommenter rank
    Stroll on over and visit Steve
    March 1, 2007

    Great tutorial. How do you get that slick OS X style form box on your archives?

  23. personal avatar Matthew Bischoffcommenter rank
    Stroll on over and visit Matthew Bischoff
    March 1, 2007

    Thanks for the tips in creating a wordpress theme from scratch.

  24. personal avatar Sphinx7commenter rank
    Stroll on over and visit Sphinx7
    March 1, 2007

    Way Cool. That was really straight forward and easy to understand. Looking forward to the other articles in the series.

    Cheers!

  25. personal avatar Hectorcommenter rank
    Stroll on over and visit Hector
    March 1, 2007

    hey, this was great. I'm not a code-kid myself, so I found the article very useful. and thanks to Problogger's Darren for pointing it out.

  26. personal avatar Raycommenter rank
    Stroll on over and visit Ray
    March 1, 2007

    Very good.

  27. personal avatar Katescommenter rank
    Stroll on over and visit Kates
    March 1, 2007

    When I did my first theme, I had a hard time figuring out how to make a template. Took me a week to learn it. I wish your post has come earlier. You explained very well. Better than the codex had.

  28. personal avatar Juliacommenter rank
    Stroll on over and visit Julia
    March 1, 2007

    Thank you for these very clearn and timesaving instructions.

  29. personal avatar Tylercommenter rank
    Stroll on over and visit Tyler
    March 1, 2007

    Great write up. Thanks.

  30. personal avatar Mark Boultoncommenter rank
    Stroll on over and visit Mark Boulton
    March 1, 2007

    I dont use Wordpress but non-the-less a really great post.

  31. personal avatar Aaroncommenter rank
    Stroll on over and visit Aaron
    March 1, 2007

    What a read, this is going to help me alot on my next wordpress theme! haha, thanks Chris!

  32. personal avatar SGcommenter rank
    Stroll on over and visit SG
    March 1, 2007

    I had a little trouble following the example, and a simple clarification might be in order. My starting page was my original archives.php page, and the template name contained in the file is simply "Archives" The original page was still there, and the FIRST instance of the template named "Archives" was selected on on the write-page screen. The second one, in a file renamed new_archives.php, was ignored.

    In the example, the name change is evidently from "Archives" to "Archives template " which I didn't recognize as a change.

    All fixed now, but certainly wouldn't be without the article, for which MANY THANKS!

    Regards..
    sg

  33. personal avatar Mahdicommenter rank
    Stroll on over and visit Mahdi
    March 1, 2007

    Hi Mamnon misham Aghe ye sari be weblog man bezanid

  34. personal avatar Moshucommenter rank
    Stroll on over and visit Moshu
    March 1, 2007

    If the file created resides in the themes/ourtheme/ folder as a Page Template it doesn't really need the require('./wp-blog-header.php'); line at the top...

  35. personal avatar Chris J. Daviscommenter rank
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    Hey Ron,

    Apparently Shawn changed the function call when he released his update. I will make that change in the tutorial.

  36. personal avatar Chris J. Daviscommenter rank
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    Hey Ron,

    That is great to hear that you were able to sort things out. I apologize that I wasn't able to respond faster to your questions though.

    That is a very good point about Kubrick, I will take that into consideration. And I am overjoyed that you are able to find these little diddies helpful. I love what I do, and it makes it that much better when someone is helped by it.

  37. personal avatar Ron Pembertoncommenter rank
    Stroll on over and visit Ron Pemberton
    March 1, 2007

    Hi Chris,
    I figured out the alignment issue involving Kubrick default. I had inserted the following thinking it would work;

    But, It should be removed and replaced with;

    What was vexing me so much - besides the fact I'm still novice in areas - is that Kubrick has widecolumns, and narrowcolumns etc.,etc..
    Anyway, the intial came from the suggested starting CSS over at Shawn's site. I respectfully submit the suggestion of adding this little tidbit about Kubrick/Clean Archives installation into your already Most Excellent tutorial. It would help any future noobs like me, who haven't complete mastery yet.
    Again, I would like to compliment your tutorials. Your writing and content presentation style are great!

    Thank you,
    Ron

  38. personal avatar Ron Pembertoncommenter rank
    Stroll on over and visit Ron Pemberton
    March 1, 2007

    I figured out what I did wrong. In your example above the function call says srg_nice, and it should be srg_clean. i didn't know to change this - but, thats what I get for installing plug-ins and hacks at 3am.You might want to point this out to complete idiots like me.
    Thanks Ron

  39. personal avatar Ron Pembertoncommenter rank
    Stroll on over and visit Ron Pemberton
    March 1, 2007

    Ok, now teach me why my div examples didn't showup in the post???!!

  40. personal avatar Ron Pembertoncommenter rank
    Stroll on over and visit Ron Pemberton
    March 1, 2007

    Hi chris,

    I wondering if you could help me position eveything correctly. I'm using the Kubrick Default, and the month/year are hanging off the left side. I have looked at your CSS, as well as Shawns. You have yours positioned in a div called content, right? Do I need to create this in my CSS, I only have a div called main.

    www.ronpemberton.com/archives/

    Any help would be appreciated. Thanks Ron

  41. personal avatar siUULcommenter rank
    Stroll on over and visit siUUL
    March 1, 2007

    thank's alot for knowledge! learn more about wp theme!

  42. personal avatar Ron Pembertoncommenter rank
    Stroll on over and visit Ron Pemberton
    March 1, 2007

    First I would like to thank for your work. It is greatly appreciated by me. I followed your well written instructions and had no problem understanding anything - but, I now get just the top half of my page and the following error message across the bottom of my screen;

    Fatal error: Call to undefined function: srg_nice_archives() in /home/ronpembe/public_html/wp-content/themes/default/clean_archives.php on line 29

    What exactly did I do wrong? Everything looks exactly as in your tutorial.

  43. personal avatar Jeremycommenter rank
    Stroll on over and visit Jeremy
    March 1, 2007

    Have you ever noticed that WP sometimes has features in the Admin that go missing? well, here i was, completly woking on this awesome tutorial ( thank you! ) and now I seem to be missing the option to select a template. oddness.

  44. personal avatar Jeremycommenter rank
    Stroll on over and visit Jeremy
    March 1, 2007

    ok,.. so either i didnt have things config'd correctly with my custom template - thus causing it not to give me the option to select one,.. or WP was just having a moment. Either way i have it working. :)

  45. personal avatar lowellcommenter rank
    Stroll on over and visit lowell
    March 1, 2007

    wow this is awesome tutorials I've really learned a lot from you Chris, thanks so much I really do apprecaite it...

  46. personal avatar lowellcommenter rank
    Stroll on over and visit lowell
    March 1, 2007

    hello chris thank you so much for your awesome tutorials

    but I have a question... I created a new theme or index.php and I put it outside the wordpress and it works fine but I want to remove the sidebar I just don't know how to do it...

    maybe you could help me on this...

    thank you so much

    heres the link my blog www.kissofheaven.com/blog
    heres the index.php that I want to remove the sidebar www.kissofheaven.com/index.php

    appreciate your help....

  47. personal avatar DefCoinscommenter rank
    Stroll on over and visit DefCoins
    March 1, 2007

    Thanks Chris - I'm totally new to this game and have learnt a lot from this post of yours!!!

  48. personal avatar Brentcommenter rank
    Stroll on over and visit Brent
    March 1, 2007

    Very good tutorial, been trying to figure this out for weeks now. Thanks!

  49. personal avatar Arnycommenter rank
    Stroll on over and visit Arny
    March 1, 2007

    Great tutorial, I'm looking forward to the next installment! My Wordpress install is in dire need of sprucing up and this tutorial will sure help.

  50. personal avatar Gaiacommenter rank
    Stroll on over and visit Gaia
    March 1, 2007

    A very nice tutorial. I had an old Kubrick with a ton of mods & am now trying to get it up on K2. It's a bit complicated, but your instructions helped me to understand Michael a bit. ;-)

    Gaia

  51. personal avatar blahgKarmacommenter rank
    Stroll on over and visit blahgKarma
    March 1, 2007

    Is there any chance this technique requires users to engage the Permalink feature in WP? I followed the tutorial verbatim, but may be missing some little step, as I don't seem to be able to display the archives. Not real sure what URL to point the browser to for displaying the page...

    Sorry for the stupid question...

    Thanks,

    Chris

  52. personal avatar lauracommenter rank
    Stroll on over and visit laura
    March 1, 2007

    Thank you for sharing your knowledge with us. Brilliant!

  53. personal avatar Erikssoncommenter rank
    Stroll on over and visit Eriksson
    March 1, 2007

    Chris you are a genius!
    thanks! mwah mwah mwah!
    Really really thank you!

    Do you hold a especial class?
    I want to attend..:=)

    XOXO :=)

  54. personal avatar Paul Fearncommenter rank
    Stroll on over and visit Paul Fearn
    May 16, 2008

    Thanks Chris, very thorough. I've followed through this and just wondered whether there are any differences now that Wordpress 2.5 is with us?

  55. personal avatar Chris J. Daviscommenter rank
    Stroll on over and visit Chris J. Davis
    May 16, 2008

    I am not sure how this will work with WP 2.5.

Pingbacks & Trackbacks

  1. I am … unhindered by talent » Blog Archive » A WordPress security patch and 2 other things to check out later » [...] stumbled across two other things that I should look at later: A potentially interesting piece on WordPress themes An interesting looking anti-spam tool But they& [...]
  2. Shaghaghi.net » Even more WordPress Theme Howto » [...] Following up on this WordPress theme howto and this one also, now comes Secrets of WP Theming: Part 1 [...]
  3. Anonymous » [...] WP-theming"> Secrets of WP-theming V
  4. Visa Kopu » WordPressiin tietoturvapäivitys » [...] jokin tietoturva-aukko. WordPress-ulkoasuista puheenollen, Chris J. Davis on kirjoittanut johd [...]
  5. Col’s Weblog » Blog Archive » WordPress Continues to Impress Me » [...] in the arse to maintain. Well, not for much longer… I’ve just discovered, via this article, that WordPress 1.5, and later has the ability to create &#8220 [...]
  6. Matt Is Busy: PHP, Smarty, Web Applications, and more… » Chris J. Davis on the Secrets of WP Theming » [...] @ 1:30 pm · Filed under Coding, Software, Tutorials, CSS Here's a great article on getting to know how WordPress works with [...]
  7. jarkolicious » probes » Secrets of Wordpress Theming » [...] Sunday May 29, 2005 Secrets of Wordpress Theming Secrets of Wordpress Theming. Written by Scott at [...]
  8. » Secrets of WP Theming: Blog Tips - ProBlogger » [...] heming Those of you who are WordPress users might be interested in Secrets of WP Theming: Part 1 and article by Chris J. Davis. [...]
  9. templaterie blog - Am Anfang war das Template und siehe es war gut » [...] chten. Je nach Template kann man eine Odyssee erleben, bevor man im gelobten Land ankommt. Nine Rules will die Odysse ein wenig erleichtern. Na dann. Mal sehen, wie we [...]
  10. Since I’m Here » Blog Archive » Secrets of WP Theming: Part 1 » [...] ins of the word “Geek” Secrets of WP Theming: Part 1 Pretty Pink Ponies Edition… » Secrets of WP Theming: Part 1 This is a pre [...]
  11. Dave’s Rants » Blog Archive » links for 2005-05-28 » [...] gs: via:b3ta mspaint paint computer art deviantart cool design drawing windows pixel) Secrets of WP Theming I’m moving this site to Wordpress soon so this s [...]
  12. Arteliance :: Top Links Last Week (May 31 - June 6, 2005) :: June :: 2005 » [...] to an Artist 6 views Links and Power: The Political Economy of Linking on the Web 5 views Pretty Pink Ponies Edition… » Secrets of WP Theming: Part 1 5 views Po [...]
  13. Taking Your Camera on the Road » Common WordPress Support Questions » [...] ess Theme WordPress Templates and the is functions Secrets of WordPress Themeing Secrets of WordPress Themeing [...]
  14. LinkLog » Pretty Pink Ponies Edition… » Secrets of WP Theming: Part 1 » [...] Webmail| | Login| June 10, 2005 Pretty Pink Ponies Edition… » Secrets of WP Theming: Part 1 Filed unde [...]
  15. Pretty Pink Ponies Edition… » Secrets of WP Theming: Part 3 » [...] ★ Latest 5 Posts CJD Notepad in BetaAlmost go timeSecrets of WP Theming: Part 2Secrets of WP Theming: Part 1The Proper use of Base HREF's ❤ Highes [...]
  16. Agsedu » Blog Archive » Pretty Pink Ponies Edition… » Secrets of WP Theming: Part 1 » [...] ="0 comments on this post."> { 0 comments } Wordpress theming » Secrets of WP Theming: Part 1 [...]
  17. Taking Your Camera on the Road » WordPress Resources List » [...] Chris J Davis's Sillyness Spelled Wrong Intentionally - Secrets of a WordPress Th [...]
  18. Secret Weapon Labs » Blog Archive » Wordpress Theming / Powerful Secrets » [...] th Elvgren and Taft, by the way. To see Chris’s posts, visit the following links: Secrets of WP Theming - Part 1 Secrets of WP Theming - Part 2 Secrets of WP [...]
  19. Aimeelicious » Links for me » [...] Holy Shit This dude rocks… Chris J. Davis Themes Tutorial 1 Chris J. Davis Themes Tutorial 2 Chris J. Davis Themes Tutorial 3 [...]
  20. davidbisset.com » Secrets of WordPress Theming » [...] Part 1, Part 2, and Part 3. [ via ] Leave a Comment [...]
  21. Terrapin Station » Blog Archive » Want to create your own WP Theme? » [...] I have been enlightened a little thanks to Chris J Davis in his Secrets of WP Theming Part 1, 2, &3. [...]
  22. Secrets of WordPress Theming » [...] Resource: Secrets of WP Theming Part 1 | Secrets of WP Theming Part 2 | Secrets of WP Theming Part 3 [...]
  23. Time Being » Blog Archive » WordPress Themes and a Quick Business Update » [...] This more for my own memory more than anything that most sane folks would be interested in. As this blog is in dire need of a style overhaul, this excellent WordPress Theming Tutorial, Parts [1] [2] [3], should come in handy. [...]
  24. Log on Dritek » Blog Archive » 連結 - Web Design on 7/1/2005 » [...] Secrets of Theming for WordPress [...]
  25. Netlex News » Blog Archive » Dissection of a WordPress theme » [...] Secrets of WP Theming: Part 1 [...]
  26. Weblog Tools Collection » WP Themes: 1.5 theme cheat-sheet » [...] WP Themers: 1.5 theme cheat-sheet A step by step, line by line of code on how to recreate a theme or build it from scratch. Also, consider reading Jesuit’s Secrets of WP Theming.   (Visited 1 times) [...]
  27. Cregy Web Design » Blog Archive » Secrets of WP theming pt1 » [...] Chris Davis [...]
  28. EgoSystem » Blog Archive » A new beginning » [...] Once arrived at home I finally got around to reading some introductory stuff about PHP and the template system of WordPress. Thanks in part to the series called Secrets of WP Theming on the recently discovered weblog of Chris J Davis. [...]
  29. ACTION80 Web Studio Magazine » Blog Archive » The hidden secrets of Wordpress » [...] Chris Davis has taken it upon himself to help out all of the Wordpress users out there by writing a series of tips that explain the secrets of using Themes in Wordpress. In his first topic, he covered the power of using Pages in Wordpress to display content that doesn’t necessarily require posts or categories. This was an extremely useful article, and I recommend it to anyone wanting to unleash the power of Wordpress. [...]
  30. How to Make a WordPress Archives Page | db.rambleschmack.net » [...] Acknowledgments: this post drew heavily on Secrets of WP Theming Part 1. [...]
  31. Super Secret Criminal Lair » Blog Archive » Theme Resources » [...] Secrets of WP Theming Pt 1 [...]
  32. Grant Palin » Blog Archive » Useful WordPress Resources » [...] Secrets of WP Theming [...]
  33. davidhay » Blog Archive » Hacking Wordpress Modules » [...] After having seen Chris J Davis’ guides to Wordpress theming, I thought that having found a cool little gubbin I ought to share it too. [...]
  34. FOUND&LOST » [...] [...]
  35. The Y Logs » Blog Archive » The Secrets of WordPress Theming » [...] Even though I’m yet to fully dive into this whole theming process, knowing how the WordPress templates work is something I’ve wanted to learn for quite some time. The Codex however doesn’t provide with the more easily understandable documents regarding this point, so I was thrilled when I finally found Secrets of WP Theming: Part 1 (followed closely by Secrets of WP Theming: Part 2 and Secrets of WP Theming: Part 3) on Sillyness Spelled Wrong Intentionally. [...]
  36. Matt Brett » Dissecting My Site: Part 1 » [...] First and foremost, none of this would be possible without the ever flexible, super simplified publishing tool that is WordPress. Well, it might be possible on other platforms, but it sure as hell wouldn’t have been as easy. I’ve used Moveable Type for a couple projects and I can honestly say their template system is a total nightmare that I wouldn’t wish upon anyone. The template system introduced in WordPress 1.5 is the best thing since sliced bread. I won’t go into detail on the various templates as there are already several good resources on that topic - the WordPress Codex is a fine point of reference, but Chris J Davis does a great job of breaking it down in language anyone can understand. I will mention one template that a lot of people don’t seem to know about. That being the home page template - home.php. [...]
  37. Secrets of WP Theming at ericsetiawan.com » [...] Chris J Davis wrote about the secrets of Wordpress theming. He divided it into three sections. Part 1 is about the custom templates which you can use to make your own static pages on Wordpress, like the archive page. Part 2 covers the *per category template*. Part 3 is about the use of home.php which after he pointed it out I feel it can be a powerful tools. In his example page, it can be used as a summary page (or the cool words *rss aggregation*) of your page which will be loaded before the index.php. Actually you can find all this piece of info at the codex but I think Chris has put it all together nicely. Now that he share it with us means this is not secrets anymore, right? :)   #     [...]
  38. Top 10 WordPress Theme Resources » Nathan Waters: Budding Young Entrepreneur » [...] ChrisJDavis: Secrets of WP Theming [...]
  39. Wordpress 2.0 Theme Design Competition - Alex Allied » [...] Secrets of WP Theming Part 1 | Part 2 | Part 3. [...]
  40. 大头’s 网摘 » » [...] Chris J Davis’s Sillyness Spelled Wrong Intentionally - Secrets of a WordPress Theme [...]
  41. Lorelle on WordPress » WordPress Theme Designers: Slapping You Upside the Head » [...] Chris J Davis’s Sillyness Spelled Wrong Intentionally - Secrets of a WordPress Theme [...]
  42. Lorelle on WordPress » Using CSS in PHP » [...] This amazing author of such awesome articles for WordPress users like Secrets of WordPress Theming and Podcasting With WordPress, among many others. [...]
  43. Lorelle on WordPress » Secrets of WordPress Theming » [...] For an amazing examination of building a WordPress Theme, dissecting every detail of the modular PHP building blocks and code that goes into a full, do-it-yourself WordPress Theme, check out the The Secrets of WordPress Theming by Chris J Davis from Sillyness Spelled Wrong Intentionally. [...]
  44. Lorelle on WordPress » Designing a WordPress Theme From Scratch » [...] Secrets of WordPress Themeing [...]
  45. [韩言蔫语] » Blog Archive » Secrets of WP Theming » [...] While I’m google around for WordPress plugins, I accidently found this article by Chris J. Davis. and worth reading it. Believe me, it’s easy to understand. [...]
  46. 오픈초이닷컴 » 워드프 » [...] 10) 현재 Update되
  47. Letters from Gramps » test » [...] WP Themers: 1.5 theme cheat-sheet A step by step, line by line of code on how to recreate a theme or build it from scratch. Also, consider reading Jesuit’s Secrets of WP Theming. [...]
  48. Letters from Gramps » When You Think That You Have Too Much To Do … » [...] WP Themers: 1.5 theme cheat-sheet A step by step, line by line of code on how to recreate a theme or build it from scratch. Also, consider reading Jesuit’s Secrets of WP Theming. [...]
  49. WordPress theme park » Secrets of WP Theming » [...] Links: Secrets of WP Theming: Part 1 Secrets of WP Theming: Part 2 Secrets of WP Theming: Part 3 [...]
  50. Stupid Wordpress Tricks » Blog Archive » Secrets of Wordpress Theming » [...] Chris Davis has created an easy to read tutorial, in 3 parts, called Secrets of Wordpress Theming.  It’s in 3 parts, which are: [...]
  51. why do anything when you can forget everything? » Sometimes I Do » [...] Secrets of WP Theming: Part 1 Secrets of WP Theming: Part 2 Secrets of WP Theming: Part 3 [...]
  52. toehold » Panacea? Unfortunately Not » [...] Secrets of WP Theming - part 1 Secrets of WP Theming - part 2 Secrets of WP Theming - part 3 [...]
  53. Aravind’s Link Blog » WordPress Theme » [...] I came across an article by Chris J. Davis called Sectets of WP Theming: Part 1 which described how to add an archive page to a blog powered by WordPress. I used a plug-in for archives called Clean Archives 2.0 from sporadicnonsense.com. [...]
  54. frankreyes.com » links for 2006-06-17 » [...] The sights our eyes behold, Will open up our merging hearts, And feed our empty souls. » Secrets of WP Theming: Part 1 (tags: wordpress) [...]
  55. GfxDizayn » WordPress temaları nasıl yapılır? » [...] Wordpress temaları hakkında ne zaman araştırma yaparsam, ya firefox favori linklerim uçuyor, yasa sakladığım dosyaların yerini unutuyoru. Bunun için bir başlık altında linkleri toplamaya karar verdim. HTML ve CSS ileri düzey bilgi sahibi olduğumuzu varsayarak yola çıkalım: UrbanGiraffe
  56. 10 links per creare il tuo tema WordPress | Napolux.com » ...Blog Design 101: Creating Your Own WordPress Theme Secrets of WP Theming ...
  57. Dress Your Blog for Success » Blog Design 101: Creating Your Own WordPress Theme from cre8d design Secrets of WP Theming from Chris J. Davis...
  58. Improve Your Look with a Customized WordPress Theme << Vandelay Website Design » ...com/blog/2006/01/27/blog-design-101-creating-your-own-wordpress-theme/">Creating your own theme Secrets of WP theming Dissection of a theme ...

Leave a Reply


Speaking

  • Nashville LUG (speaking)

    May 13th 7:00pm
    Nashville, Tennessee
    Visit NLUG

Buy my book!

Blog Design Solutions