Monthly Archives: January 2011
If you have been looking for a related post plugin, you might be overwhelmed by the number of related post plugins available at the moment. Some of them are outdated, some are identical, some are efficient, and some are not. The goal of this post is to help you choose the most suitable one for your website. I will try my best to give all the pros and cons of each plugin... more
WordPress's Visual Editor, or any WYSIWYG (What you see is what you get) editor, is often known for their bad output and the auto-cleaning up problem. If you ask another WordPress user, he or she will most of the time tell you how they hate the Visual Editor and turn it off immediately after installation.
I actually use the Visual Editor a lot, it has 'Visual' in the name for a purpose and... more
It is typical for any WordPress blog owner to have a few (if not many) shortcodes defined in his or her installed theme or plugins. While some shortcodes will work perfectly, some, especially enclosing ones, will not. Most of the time the problems lie at WordPress's built-in formatting functions, famous one of which is wpautop().
There are actually countless support questions and articles about wpautop() and other formatting functions mangling the contents of... more
Developers who have used remove_filter() or remove_action() probably won't notice there's a bug that mysteriously makes those two functions break other filters or actions defined after they are used. The reason is unclear at the moment and bug reports have been fired but no milestone set for future releases, so I will just post the bug here and provide a (probably) neat workaround that allows you to bypass this bug.
To reproduce the... more
Using plugins for your WordPress website or blog is undoubtedly a must, but if you abuse them you might eventually find yourself in tight situations. Many plugins out there are poorly written and eat up a lot of memory, or even if they aren't they simply don't need to be included every single time.
For example, plugins that are designed specifically for the back-end such as TinyMCE Advanced, Ozh' Admin Drop Down Menu... more
As a developer and also an end-user, I have been bothered by the same question again and again: How should I organize files within my theme's root and which themes can be considered as well-structured?
If you have read another article named WordPress Themes' Problems and How to Find Good Ones on BetterWP.net, you would know that WordPress Themes have many potential problems and one of which is about theme files' organization. Each... more
Custom Post Types has been one of the most discussed topics when people talk about WordPress since version 3.0. Whether you are developing a website using WordPress as a CMS or you just have different content types rather than posts, pages or attachments, custom post types is the most complete way to go.
In order to add custom post types to your website or blog you can either use some plugins that have... more
Welcome to another series on BetterWP.net where you can find some cool bugs that are either dreadful or hilarious or both at the same time. Each article will consist of five to ten bugs with their descriptions, statuses and possibly their temporary solutions if no patch is available.
This series is intended to help make WordPress bugs become friendlier to users and encourage people to learn more about bugs so they might be... more
A global variable, as it name suggests, is simply a type of variable that is available for use within any fraction of your codes. PHP's global variables and all their glory can be used within WordPress to help you eliminate code duplication, and in some situations save you some database queries.
Even though many developers think that using global variable is simply a bad practice, if you use it the right way there... more
Theme is a great invention, no doubt. But themes, especially free themes or pirated premium themes, also bring many troubles.
How many times have you downloaded a cool-looking WordPress theme just to find out that it doesn't work as expected, or is out of date? Does it even show a blank white page with a nasty fatal error? Does the theme you just bought allow you to customize things via extensive hook support... more
My very first plugin, BWP reCAPTCHA, has been released! This plugin utilizes the popular anti-spam library, reCAPTCHA, to help your blog stay clear of spams. This plugin provides better user experience by allowing you to integrate with Akismet. Fighting spam has never been more effective!... more