on Feb 22, 2012 •
For some themes, when the homepage or more exactly – the front page, is well designed, and users have to follow the theme documentation to create such that page to make it look the same as in the demo. In this article, I’ll show you a simple way to check if a static homepage has...
on Feb 2, 2012 •
By default in the Menus screen (Appearance -> Menu), WordPress shows only meta boxes for Pages and Categories, from which you can select items and add to menus. Do you know that we can add the same meta boxes for all custom post types and custom taxonomies? Actually WordPress supports that feature, but it simply...
on Jan 12, 2012 •
There’re a couple of variables can help us determining which admin screen we’re seeing: $pagenow for current page ID, $typenow for current post type, etc. But using these variables requires us a huge afford to combine them just to get the correct information we want. Fortunately, since version 3.3, WordPress gives us a more completed...
on Nov 29, 2011 •
Embedding Youtube video in the post content in WordPress is extremely easy, just wrap it in the [ embed ]. Or even easier by checking the options Auto-embeds in Settings > Media and WordPress will automatically turns Youtube URL into the embedded video. But that’s for the post content. How do we embed the Youtube...
on Nov 5, 2011 •
Some users don’t notice this, but by default WordPress displays inline style for gallery shortcode. If you look at the source of a post that contains [ gallery ] shortcode, you’ll see something similar to: The <style> tag should not be there. It will break your HTML validation (if you care). Another reason you should...
on Oct 14, 2011 •
It’s been a while since the version 3.2.2 of Meta Box Script was released. I was working on this script for refactoring, making a good architect for it so that users and developers can easily use and customize it. The result of refactoring (which I call v4.0 beta) is put on GitHub. There’re many major...
on Sep 23, 2011 •
One problem I’ve met when using WordPress HTTP API is that I couldn’t show the error message to users when the connection has failed. There are various problems of connection failure such as wrong URL, timeout, server block, etc. Users (and developers) need to see the error message to fix the PHP code or ask...