O'Reilly logo

WordPress® Bible by Aaron Brazell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Dissecting the Comment Loop, Template Tags, and Theme Best Practices

IN THIS CHAPTER

  • Using hooks in themes

  • Implementing scripts in themes

  • Using template tags to make themes dynamic

  • Creating conversations with threaded comments and paged comments

  • Personalizing the reader experience with avatars

Creating themes for WordPress is still a somewhat subjective process. Perhaps this is because designers, as a demographic, tend to be free-thinking artists rather than straight-line developers. There is no real "right" or "wrong" way to create a theme. However, there are certainly best practices and elements that are useful.

As WordPress continues to evolve, there is a lot of discussion cropping up in the WordPress community about standardizing themes and coding practices. Whether anything truly takes hold depends largely on the community's capability to demand standards and hold designers feet to the fire on them, as the community did with plugins.

Already, WordPress.com requires certain elements for all themes that will be hosted on WordPress.com. The WordPress Themes Directory, located at http://wordpress.org/extend/themes, also enforces certain standards if designers want to have their themes hosted and gain the marketing advantages of being listed in the directory.

As the community has grown and WordPress has greater influence, the need for standardization has become forefront. Plugin developers must adhere to the WordPress application programming interface (API) standards; when they ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required