Book Image

WordPress 2.8 Theme Design

Book Image

WordPress 2.8 Theme Design

Overview of this book

Themes are among the most powerful features that can be used to customize a web site, especially in WordPress. Using custom themes you can brand your site for a particular corporate image, ensure standards compliance, and create easily navigable layouts. But most WordPress users still continue to use default themes as developing and deploying themes that are flexible and easily maintainable is not always straightforward. It's easy to create powerful and professional themes for your WordPress web site when you've got this book to hand. It provides clear, step-by-step instructions to create a robust and flexible WordPress theme, along with best practices for theme development. It will take you through the ins and outs of creating sophisticated professional themes for the WordPress personal publishing platform. It reviews the best practices from development tools and setting up your WordPress sandbox, through design tips and suggestions, to setting up your theme's template structure, coding markup, testing and debugging, to taking it live. The last three chapters are dedicated to additional tips, tricks, and various cookbook recipes for adding popular site enhancements to your WordPress theme designs using third-party plugins. Whether you're working with a pre-existing theme or creating a new one from the ground up, WordPress Theme Design will give you the know-how to understand how themes work within the WordPress blog system, enabling you to take full control over your site's design and branding.
Table of Contents (15 chapters)
WordPress 2.8 Theme Design
Credits
About the Author
About the Reviewer
Preface
Index

WordPress core functions


In Chapter 3, I wrote a custom display loop that showed the top five most recent post titles in my Features category. I used a WordPress function called setup_postdata().

I mentioned you might notice that the setup_postdata() function isn't listed in WordPress.org's template tag reference page. Template tags are WordPress functions that are defined for use specifically within themes; the setup_postdata function is part of WordPress' core functions.

Core functions are primarily useful to plugin developers and the developers customizing WordPress' overall functionality for themselves. Occasionally, as we discovered in Chapter 3, some of the functions can be useful to theme developers who want highly specialized functionality within their themes.

I won't take time to break down any core functions into a table, as most people won't really need these for their theme development. I just want to make you aware of the existence of core functions so that if you ever do find...