WordPress.org

Ready to get started?Download WordPress

Forums

Customizing Post Formats (2 posts)

  1. Johanna
    Member
    Posted 3 years ago #

    I've been looking everywhere and as far as I can see I've found the code you need to add into your theme to customize the display of post formats. No where have I found to actually implement this code. Maybe I'm just blind, cause that's happened before. But if someone could explain it to me, I would be really grateful. I'm pretty good at modifying code if I know what to do with it.

    Here are the articles I've found that I like the ideas of most:
    http://dougal.gunters.org/blog/2010/12/10/smarter-post-formats
    http://www.itsananderson.com/2010/12/even-smarter-post-formats

  2. Dougal Campbell
    Member
    Posted 3 years ago #

    Johanna,

    Depending on your theme, you may need to modify several files. In many themes, the first file you want to look at is the index.php template. But in some newer themes (like TwentyTen), the 'loop' portion of the code is broken out into separate files, so you might need to look for loop.php or something similar.

    Some themes might also have a home.php or a front-page.php, and the archive.php file might be one you'll want to modify, as well.

    And if you're getting really fancy, just about all of the templates could be modified. For example, you might edit single.php so that single-page 'asides' posts are structured very differently from single-page 'link' posts.

    But generally speaking, 'index' and maybe 'archives' are probably where you want to start looking. If you compare the code in your theme files to what you see in some of the tutorials on Post Formats, you should see where to make the changes.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic