WordPress Archive

WordPress – How to Fix “Briefly unavailable for scheduled maintenance. Check back in a minute.”

Just attempt to upgrade your WordPress website only to find that the following message is stuck? Briefly unavailable for scheduled maintenance. Check back in a minute. Yeah. It happens. Especially if the upgrade fails / times out. Luckily, it’s not tough to get rid of this error. All you need is FTP access! Load up

WordPress – get_posts – Show Sticky Posts First

WordPress has a feature called “Sticky Posts” (it’s under the “Visibility” section for WordPress posts). As the name implies, the post will be pinned to the front page if checked. Unfortunately, get_posts seems to ignore this … and will show (by default) in Chronological Order…Which is fine usually. That’s how news should be. There are

WordPress – PHP for Simple Related Links (Using Categories)

Want to display posts from the same category as whatever post is being viewed? No problem. Simply copy the below and paste it into your theme wherever you’d like them to be displayed. Good spots: bottom of the post, footer, sidebar. This is set to spit out 5 posts right now. Change as needed. <?php

WordPress – Running a Shortcode INSIDE of Theme Files

Many plugins utilize shortcodes for easy insertion. While these are normally geared towards being used in posts and pages, they can also be used in the theme files / template itself! And the best part? It’s simple to do. How simple? Well, one line of code is all it takes! <?php echo do_shortcode("[yourcode]"); ?> Easy

How to Fix – Fatal error: Cannot redeclare _wp_post_revision_fields()

I just encountered the following WordPress upgrade error when moving to 3.6 (though you may be experiencing it with WordPress 3.7 or newer): Fatal error: Cannot redeclare _wp_post_revision_fields() in /home/xxxx/public_html/xxxx/wp-includes/revision.php on line 25 Pesky, huh? Easily fixed though. Download the latest copy of WordPress, then connect to your site via FTP. Rename wp-includes (or delete

WordPress: How to Add More Upload Categories

Many websites upload a whole bunch of different file types to their website(s). This is done so easily through WordPress, that people feel compelled to put anything and everything up. Great, right? Yes and no. Doing so leaves you with a media folder jumbled with a whole bunch of different file types that have less