Is there a better way to pull in custom content without querying posts?

It’s not a hack, this is what databases are designed for- querying large quantities of data. If you’re concerned about load, you should employ caching on data that doesn’t change frequently. That said, you should not be using query_posts to create additional queries. Really, you shouldn’t be using query_posts at all. Create additional queries via … Read more

How to insert category list into post creation page, and retrieve chosen categories?

By default page post type doesn’t support category taxonomy. But you can easily fix it by register category taxonomy for page post type: add_action( ‘init’, ‘wpse8170_init’ ); function wpse8170_init() { register_taxonomy_for_object_type( ‘category’, ‘page’ ); } Now you will see categories meta box in the same place as you see it at post creation page. To … Read more

What are the main parts of a WordPress Template?

Indeed, it is as toscho has said. index.php and style.css are the bare minumum. Developers like to separate things, though, so instead of having one index.php file to rule all, you’ll find parts like: header.php footer.php sidebar.php index.php style.css functions.php and additional templates like ones you mentioned in the question. This page will show you … Read more

Override Taxonomy Template

Take a look at the Codex: taxonomy-{taxonomy}-{term}.php – If the taxonomy were sometax, and taxonomy’s term were someterm WordPress would look for taxonomy-sometax-someterm.php. In the case of Post Formats, the taxonomy is ‘post_format’ and the terms are post-format-{format}. i.e. taxonomy-post_format-post-format-link.php taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php taxonomy.php You registered … Read more