WordPress

  • Remove WordPress Maintenance Mode

    Sometimes, upgrades fail at some point for some reason. That will leave your site in maintenance mode and unusable. That’s the “Briefly Unavailable for Scheduled Maintenance” that we see while the upgrade is on-going or if it fails. So how do we get out of the maintenance mode?

  • Apache Cannot Allocate Memory Problem

    For the past month, I have been encountering some problems with my WordPress installation. I keep getting the Error 500. I checked the log files and here’s what I found. (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for

  • Missing Custom Fields on WordPress 3.2

    I’m now using WordPress 3.2 in all my new installation. Of course, I already upgraded the rest of my websites. But I found something that’s really strange. The Custom Fields and a few other modules are missing the the post editor. I was thinking maybe it was removed in the latest version or that it…

  • Automatically Convert Emails to NoSpam

    To prevent spam comments on one of the sites that I maintain, I send for approval any comment with at least one URL or email address in it. In that way, manual spammers will find no incentive on leaving comments on the site. At the same time, email addresses left by commenters will not be…

  • Private File Attachments in WordPress

    Before WordPress 3.0, I use codes from the plugin Private Files in one of client website to protect the files from illegal download/viewing. It works by not allowing access to WP’s uploads directory and sending and then serving a custom 404 page. It works fine until WordPress 3.0 started sending headers before calling the template’s…

  • WordPress 404 Page Not Working in IE

    As stated in the title, my 404 template in WordPress does not show up every time a non-existent URL is accessed in my site. The page works perfectly in FireFox and Chrome, though. So I made a quick search and found that the solution is to add another header information in the page. So here’s…

  • Get Category Name in WordPress

    This is another super simple and yet super helpful WordPress function that took me a while to find. I’m currently working on a WP Theme that requires me to show the category name. And I thought it isn’t right to write an SQL including all the necessary stuffs that comes with querying the database just…