Browse and Enjoy Reading!
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
Right now when I am writing this post, I don't really know if betterwp.net can become a popular website in the future or not. I develop this website, develop my plugins, write articles with the hope that they can benefit other WordPress users.
If you have used a forum software like phpBB in the past, you will be surprised to look at its history. phpBB has been around for more than 9 years,... more