Articles in this series

38 Responses

  1. dinu
    dinu March 13, 2009 at 3:11 pm | | Reply

    I used page templates to create sitemap, with copyblogger theme. I looked for something similar in the Hybrid theme, but the drop down was blank … how do I enable them for Hybrid theme ? may be this is the subject for your next post ? ;)

  2. Ryan
    Ryan March 13, 2009 at 3:55 pm | | Reply

    What about a photoblog page template for pulling in a category dedicated to photos. It should have single view as well as archive (thumbs) view.

    Although I’d like to try it myself I haven’t had the time. Are there any restrictions on having a category specific page template? What about the next/previous post links in a specific category issue?

    I’m interested in the template you come up with. Looking forward to the tutorials.

  3. rgregory
    rgregory March 13, 2009 at 8:09 pm | | Reply

    How about a simple page template to display a single category of posts? Gotta start somewhere, eh?

  4. dinu
    dinu March 13, 2009 at 9:15 pm | | Reply

    my mistake .. sorry ..
    I got it !!

  5. TGLR
    TGLR March 14, 2009 at 10:17 am | | Reply

    So I’m guessing you’d say Wordpress is much better than Blogger???

  6. MyBodyPart
    MyBodyPart March 14, 2009 at 12:40 pm | | Reply

    How about a users page, done visually, by grabbing user profile information (if it exists). This could even be separated by user roles…and if you grabbed gravatars, that would be the cherry on top.

    So, here’s a list of my subscribers….then display their gravatar (if they have one), and selected fields from their profile information (if it exists).

    This would be most useful for a blog that has “contributors” or “editors” most likely, some reason that people would want to see these profiles of course. Or this use case, say it’s for an internal company site, and you want to create an employee directory…or a church directory?

    Thoughts?

  7. DaveK
    DaveK March 14, 2009 at 6:59 pm | | Reply

    Justin,
    I’m well into your quick-post page temlpate, I’d love to see how you would extend it with a submit to category option as well as adding images.
    I have this working on one of my sites but would still like to see how you would do it.

    I’d also like to see email-author of post & tell-a-friend about post page templates.

    As you can probably tell, I run a multi author site, I don’t want these authors having access to the word press back-end so I’d also like to have edit-post & my-posts page templates.

  8. Stefano F. (tacone)
    Stefano F. (tacone) March 15, 2009 at 10:20 am | | Reply

    What I’ll probably do is a page template to let users send a post (along with tags and images). The post would be saved and marked as Pending Review.

  9. Ryan Fitzer
    Ryan Fitzer March 15, 2009 at 11:23 am | | Reply

    Justin, category templates are great. The problem is the lack of interface for selection similar to page templates. I’ve always wanted to see this added to the categories page. It would be great to load up a theme with not only page templates but category templates as well. When a user creates a new category they could also choose what type of template they’d like to render that category (photoblog, calendar, quicklinks, portfolio, etc…). Unfortunately, pages are the only ones that get a UI. That’s from where my suggestion originated.

    What’s you’re opinion?

  10. Ryan
    Ryan March 15, 2009 at 12:02 pm | | Reply

    I just coded a page template to pull in a certain category and right away I ran into the problem where users won’t actually be able to choose the category without some separate interface. Which, like you said (and I agree) can go a bit too far. Didn’t see that coming.

    Ok, my new suggestion for a page template is for a résumé. I make a lot of artists sites and the second biggest request I get is for the ability to have a standard formatted résumé page. The template I’ve made is pretty standard (example: http://davideology.com/?page_id=4 ). Maybe you’d have more exciting ideas

  11. Stefano F. (tacone)
    Stefano F. (tacone) March 15, 2009 at 12:17 pm | | Reply

    Ugh ! It’s already there :-) .
    I’ll try to get it using the rich editor and so on, but it sounds like a good start.

  12. DaveK
    DaveK March 15, 2009 at 8:56 pm | | Reply

    Justin, I have thought about dressing up the back end rather than creating page templates to do similar functionality but I’m still stuck on page templates.
    Dressing up the word press back end is another nightmare I don’t want to get into.

    Took a while to figure out but adding images using:

    on the quick post-page template works perfectly, creates the thumbnails & adds links to full images…

  13. chris
    chris March 17, 2009 at 8:10 am | | Reply

    wordpress should have post templates as well as page templates.

  14. Bonnie
    Bonnie March 18, 2009 at 5:55 pm | | Reply

    I always enjoy reading about what’s cooking in your brain, Justin!

    The only idea I could come up with is a post template, but Chris beat me to it.

  15. ricland
    ricland March 22, 2009 at 9:15 am | | Reply

    Love to see you hybred them pull in rss feeds that I assign a static image (user/author) to

  16. Faisal Khan
    Faisal Khan March 30, 2009 at 4:44 am | | Reply

    Hi Justin

    Although definitely page templates have a great potential, but I have a problem which I am really stuck in!

    So, I am making a Page Templates within my WP. One of the Page Template is confusing me a lot.

    This Page Template denotes Projects. Now there are three projects as of now and ofcourse a new project can be created later by the user.

    When a New Project is made, it is assigned that Project “Page Template”. Now the problem is that I want to have a different gallery for each project within my Project Template.

    I know how to make a gallery and how to make user to put it through Page, but what I am stuck in that how would I control different Project Galleries within the same Project Template. Ofcourse, I have to find a way, to let user do that for every new project he/she makes.

    Do you think, I can achieve a solution to this problem through Page Templates?

    Many Thanks!

  17. karen
    karen April 2, 2009 at 8:34 pm | | Reply

    could you create a template that had a grid of thumbnail photo on the left half of the page.
    Each thumbnail would be clickable and, wehn clicked, a larger version would show up on the left hand of the page, and in a perfect world, a caption for that enlarged image?
    I’m an illustrator and would love to create that kind of portfolio template. I’m fairly new to Wordpress, so – don’t laugh – but is what I am imagining even in the realm of possibility with a template?

  18. Mrs. Micah
    Mrs. Micah April 6, 2009 at 9:14 pm | | Reply

    Thanks for starting this. I don’t think I even need a tutorial, I just need to do it. My site theme is Cutline-based but majorly modded (and not very clean, I’m afraid, though I’m working on a cleaned-up version without the discarded CSS and whatnot).

    As the blog evolves, I’ve found myself using a lot of conditional PHP to control things that I could solve with a couple templates. Like one for pages where I want 2 sidebars instead of 1. And another template for pages where I don’t want any. Those are the most-common changes I make to pages. All the code is there, too, I just need to straighten it out and put it together. But my brain got so fixated on the conditional PHP solution that it wasn’t thinking about simpler alternatives.

    Thanks for the idea! (I’ll also be following the series to see what else people come up with.)

  19. alvin
    alvin May 18, 2009 at 1:18 pm | | Reply

    hey justin,

    do you think it’s ideal to use templating to create page variations? i.e seperate the content being displayed, and how it’s being displayed on a WORK page (portfolio) vs. the BLOG page.

    would be klutch for artists, illustrators and designers if they could easily create a page called work, select “portfolio template” in the drop down, and then be able to skin and customize their portfolio that way, as supposed to having an entire site dedicated to artwork.

    thanks,
    alvin

  20. Slotted
    Slotted September 7, 2009 at 1:50 pm | | Reply

    I build real estate and legal sites using WP as a cms. One page template we use for RE is a property listing template. Another is a featured listings template for thumbnails of property that link to the specific single property listing template – basically a gallery template. We also have a blank template with no sidebars for framing in 3rd party property search programs.

    Couple the different page templates with widgetized content areas and you have a huge number of layout options.

  21. Matthew
    Matthew October 26, 2009 at 8:51 am | | Reply

    Hi,

    Thanks for the post, I would like to raise an issue I am encountering. I am using a customized theme. This theme doesn’t have the ‘Template’ dropdown within the ‘Attributes’ box. Is there a way for me to add that dropdown box?

    Thanks

  22. Valkrum
    Valkrum December 5, 2009 at 11:52 pm | | Reply

    I am making a page template that dynamically calls different header templates for SEO purposes.

    Just to give a basic idea, I have the metas from google that only need to show up on the site root. So if the page being called is the site root, then the page will call rootheader.php and load the header with the google meta.

    One more example. I only want certain pages to be tracked by analytics. So I have an analyticsheader.php

    So that’s what I am doing with my headerselectpage.php custom page template.

  23. Valkrum
    Valkrum December 6, 2009 at 12:21 am | | Reply

    by the way, if the admin of this site cares to edit my original content, this is a great source for the proper conditional tags to use in your custom page template to call different headers based on certain criteria.

    http://codex.wordpress.org/Conditional_Tags

  24. palle
    palle February 27, 2010 at 5:06 pm | | Reply

    Thanks alot!

    That pictured helped me alot, due to a bug in wordpress admin I couldn’t see the page template until I selected default theme – and then back to my own. But it was the picture that made me realize that there should’ve been something there and not just that I didn’t find it. Thanks again…

    Keep up the good work.
    Best Wishes Palle

  25. Devin Walker
    Devin Walker April 7, 2010 at 1:05 pm | | Reply

    Very helpful tutorial, hope you keep posting on your site. Gotta love WordPress!

  26. Ellen
    Ellen May 23, 2011 at 3:27 pm | | Reply

    I don’t see where to choose a page template. I don’t see anything called Attributes (I’m using 3.1). The WordPress codex says, “Toward the bottom of the Write > Page administration panel (or on the sidebar, depending on which version of WordPress you are using) is a drop-down labeled “Page Template.” I can’t find that either.

    Can you help?
    Thanks

  27. Jae Baeli
    Jae Baeli December 8, 2011 at 4:13 pm | | Reply

    you say change the header and then save the example.php–but WHERE do you save it? when it’s modified, do you mean modify it within a text editor and then save it there, and then upload it ( example.php or any new template) ? if so, which directory do we upload/save it to? wp-content? OR the folder where the material for that page goes? (In my case, blog/video/example.php). I’m just a little confused about where we put these things we create.

  28. Jae Baeli
    Jae Baeli December 8, 2011 at 4:16 pm | | Reply

    that template i created is also not showing up in the Page Attributes/Parent/ drop down box…

Leave a Reply

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution.

Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.