Posts tagged: tips
This is something I find myself answering a lot. Excuse the snarky introduction to this post, my real goal here is to attempt to clarify what will and will not "work" with WordPress. So, to answer the question, "will this work With WordPress?!?!"...
Recently, I found myself on the front lines of WordPress’ somewhat complicated Media-Library system. The site that I was developing required a rather elaborate system of retrieving and displaying image attachments. So, using the latest version of WordPress (2.8.3 at the time), I found myself experimenting with as many template tags and custom functions as I could find. After much experimentation, I discovered the perfect solution, and along the way I collected a healthy collection of recipes for displaying image attachments and their various types of associated information.
Not everyone loves the post-revisioning feature of WordPress. In fact, some people can’t stand it. On the one hand, it’s nice to have a library of post-draft revisions to drudge through if you should ever make a mistake. On the other hand, multiple copies of every post is a great way to bloat your database with otherwise useless information.
Included in the
header.php template of most WordPress themes, there is an important hook called
wp_head. This essential hook enables WordPress functions to output content to the browser in the
<head></head> area of your web pages1.
For example, in newer versions of WordPress,
wp_head() enables WordPress to output the following three lines to your theme’s
Ever needed to update an option in your database without having to log into your control panel or phpMyAdmin? WordPress provides you with an easy way to view, edit and update your database options table (
wp_options) by simply opening the following URL in your browser: