When the iPad came out I was able to convince myself that it really is my responsibility as a publisher of a digital book that I should have this device for testing.
We covered how to run a shortcode in a widget. But what about inserting a widget with a shortcode? I recently had this situation come up.
I had a single page where I just wanted to be able to chuck in a widget without the whole rigmarole of creating a special widgetized area and probably a custom page template for that widgetized area and so forth and so on.
I wanted to just put
[widget widget_name="my_widget"] in the pages content and have that widget pop in. Turns out it wasn't as easy I wanted it to be, but it's not that bad...
In a recent post, we show you how to clean up and enhance the functionality of WordPress with a custom functions.php template. In that post, we explain how using a custom
functions.php template can speed up development while optimizing many key aspects of WordPress. In this post, we deliver another prime collection of 15 custom functions to enhance your WordPress site. These functions provide all sorts of useful functionality, including stuff like:
Just to let you know about the new mobile version of the site. This makes it much easier to visit on many mobile devices. Shouts to mobify.me for making it happen.
The most popular SEO plugin for WordPress is certainly the All-In-One SEO Pack. It's on just about every plugin roundup you'll ever see. It's free. It works well. But it's not the only kid on the block. One of the guys from WP Engineer has a competing product: wpSEO. I've now used them both. I thought a head-to-head comparison would be useful for people to make their own decisions.
“A popular ability in WordPress themes is to add custom CSS driven by options. This brings up a common question, how should the theme inject custom CSS? I’ll outline three different approaches on how to do this.”
A useful tool to have in in your WordPress toolbelt is the ability to quickly and easily search for, find, and replace specific strings of text directly from the MySQL database. We can do this by entering SQL queries either directly or through one of those handy interface applications like phpMyAdmin, which seems like one of the most prevalent PHP applications on servers today.
Turn regular datestamps into more human-readable text (e.g. 22 minutes ago) via a built-in WordPress function.
Still confused about these "custom post types"? We already have categories for Posts and we can use various techniques like post_class to target certain posts with CSS and do different styling. We can also use conditionals to treat posts in different categories completely differently. Why is this going to help?
The big difference is that it actually adds sidebar links to the Admin side specifically for these new types. And beyond that, you can actually declare custom data types for different types. Instead of just "Add Post" and "Add Page", you can have "Add Real Estate Listing", which only will ask for "Property Name", "Description", "Price", and "Sale Status". Powerful stuff!
A while back we talked about upgrading plugins. Specifically the All-in-One SEO pack and the controversy surrounding how it turns it self off after (some) updates. This is what that plugin looks like when it needs an updating:
I just got my hands on issue #199 of .net Mag. I did an article for it on WordPress, and it's on the cover!
They did use the wrong W for the cover, but I'm sure they got enough flack for it they won't mess that up again =). This is probably practically an old issue for UK folks, but big bookstores in the U.S. I find do tend to stock this magazine (Sold as "Practical Web Design" in the U.S.) but always a few issues old, so I bet you could find it around about now.
Editor's note: 404 link removed.
When designing WordPress themes, I always add a common set of custom functions to the theme’s
functions.php file. This speeds up development time because I don’t have to hunt for and individually copy the same slew of functions for every theme. I just drop in a copy of my functions.php template and build up from there. This takes care of all those little things that always need to be done for every theme. You know, things like:
Have a bunch of different areas you wish to declare as a widgetized area? Save repetative code by creating a quick array of their names, then loop through that array calling the register_sidebar() function on each one. Elementary PHP stuff here, but hey, it just saved me quite a few lines of code in a widget-heavy theme I am working on.
Drag to your bookmarks bar, click, get a bunch of buttons for easy access to specific areas of your WordPress admin. No security concerns, other than taking people to your log in page, so assuming you have a good strong password you are fine. Also I suppose this assumes you have WP installed at the root...