When building WordPress themes from scratch it is easy to forget about things that “just work”. One of such things, often forgotten by newcomers to WordPress theme development, is trackback auto-discovery – a really tiny bit of code, which is not visible to a naked eye (an eye without HTML source that is). Trackback auto-discovery provides a specially formatted HTML code for other content management systems to find a trackback URL in your post. Gladly, there is a Codex page that covers trackback_rdf() function.
Tip #9 : Use trackback auto-discovery
Posted by Leonid Mamchenkov on December 18, 2007
Posted in Documentation, Themes, WordPress, WordPress Tips | 24 Comments »
Tip #8 : Read WordPress Digest
Posted by Leonid Mamchenkov on December 3, 2007
If you don’t have a lot of time to follow WordPress development news, just read to this one blog – WordPress weekly digest. One short post per week, with a summary list of what changes went into trunk. Occasionally, there are also brief explanations like this one:
The last change means that the next time you login the value stored in the database will change – this means that if you do upgrade passed this point reverting back to an old version will invalidate all users passwords and they will need reseting. Therefore it is a good idea to backup up your users table before updating to the latest trunk.
Posted in WordPress, WordPress Tips | 12 Comments »
Tip #7 : WordPress constants
Posted by Leonid Mamchenkov on October 5, 2007
ABSPATH is one of the most known WordPress constants. It holds filesystem path to WordPress installation and is often used to construct filesystem paths relative to WordPress. But what other constants are there in WordPress? The answer is easy to get than it might seem. You can see a full list here.
(Thanks to Benedict Eastaugh over at wp-hackers mailing list for the above link)
Posted in WordPress Tips | 12 Comments »
Tip #5 : Taxonomy in WordPress 2.3
Posted by Leonid Mamchenkov on August 27, 2007
The upcoming release of WordPress 2.3 introduces a new way of tagging and categorizing posts and links. It replaces the old way of categories and should provide enough flexibility to replace a whole bunch of plugins. Or, at least, make those plugins much simpler.
This new feature required a few changes in the WordPress database scheme. Gladly, Ryan Boren has posted the description of changes in the database structure.
Posted in Database, WordPress, WordPress Tips | 15 Comments »
Tip #4 : WordPress cheat sheets
Posted by Leonid Mamchenkov on August 22, 2007
There is an excellent collection of WordPress cheat sheets at Kahi’s WordPress notes. Cheat sheets provide a simple way of getting an overview picture of one specific topic, as well as to quickly find a name of a function or a variable. The best thing about cheat sheets is that you can print them out, fold, and put on your table, so that a quick reference is just a look away.
If this type of documentation appeals to you, Lorelle has a whole bunch of cheat sheets for all things related to WordPress development – HTML, CSS, PHP, SQL, etc.
Posted in Documentation, WordPress, WordPress Tips | 12 Comments »
Making WordPress themes III : template hierarchy
Posted by Leonid Mamchenkov on August 22, 2007
(This is the third post in “Making WordPress themes” series. If you missed the previous two, here are the links: “Making WordPress themes I : static basics” and “Making WordPress themes II : The Loop” ).
In this post we’ll see which filenames WordPress recognizes in the theme directory, and how it knows which posts to show to the visitor based on where the visitor is.
Posted in Documentation, Themes, WordPress | 38 Comments »
More WordPress theming at WPDesigner.com
Posted by Leonid Mamchenkov on August 21, 2007
I came across an excellent resource about WordPress theming – WPDesigner.com . There are theme reviews, forum and few other bits worth checking out. But the best part of the web site, in my opinion, are the Tutorials. They are so good in fact that I decided to add the RSS feed to WPDesigner.com tutorials to the sidebar of WordPress Bits (see it on the left, below Archives). Really cool stuff!
Posted in Themes, WordPress | 20 Comments »
Making WordPress themes II : The Loop
Posted by Leonid Mamchenkov on August 21, 2007
(This post is a second part of the “Making WordPress themes” series. The first part is “Making WordPress themes I : static basics“)
The Loop is perhaps the most important thing there is to understand in WordPress theme building. It is the heart, the soul and the skeleton of any WordPress theme. It’s been fairly well documented at Codex – see pages “The Loop” and “The Loop in Action” – but no WordPress theme building series could be complete without yet another attempt of making it easier to understand, so here we go…
Posted in Themes, WordPress | 15 Comments »
Tip #3 : Under Construction
Posted by Leonid Mamchenkov on August 20, 2007
It is often desired to have a final version of the project on the production server for testing purposes, but so that nobody other than site administrators could see things. Also, once in a while, one needs to have a “Site under maintenance” page, even if for just a little while.
There are, of course, many ways to achieve the desired effect (e.g.: using a custom theme or an index.html preceding index.php). But probably the easiest and the most “proper” is by using Maintenance Mode Plugin. It provides a number of options to customize the displayed message, as well give visitors a hint of when it is better to come back. But what is more important, it allows logged in Administrators to see and use the web site like usual – invaluable for testing, as well demonstrations of a ready project to the client.
Posted in WordPress Tips | 25 Comments »