Category: Wordpress Snippets

Delete Post Revisions Using Functions.php File
[ad_1] Post revisions are a way for users to keep a working collection of each different version of a post and then revert back to it in the future if necessary. It is a useful feature for some but some find it to be totally useless because cluttering of WordPress database, gobbles up disk space,…

Disable Automatic Updates In WordPress
[ad_1] Automatic background updates were introduced in WordPress 3.7 in an effort to promote better security, and to streamline the update experience overall. A typical WordPress install will now be able to automatically update itself when there is a new minor/security release available without any user input. For example, WordPress will automatically update itself from…

Show The Latest Sticky Posts In WordPress
[ad_1] WordPress introduced a very cool feature called sticky posts in version 2.7. Since then you’ve been able to assign some posts to be sticky, a sticky post will make sure that this post appears at the top of the list of posts. If you use your WordPress site as a normal blog and have…

Change Default Theme For WordPress Multisites
[ad_1] When you create a new site in your WordPress multisite network, WordPress automatically assign a theme to your new site. It does not use the themes that you have installed or activated on the other sites but will use the default WordPress theme that is setup in WordPress regardless of its existence in themes…

Automatically Link Twitter Usernames in Posts And Comments
[ad_1] Have you ever wonder how some websites allow you to enter a user’s Twitter handle (username preceded by a @ symbol) and automatically turn it into a link to that users Twitter profile page? If you frequently mention user’s twitter handles in your blog post content, then I think you will going to love…

Automatically Empty Trash in WordPress
[ad_1] When you delete a post, page, or comment from your blog, it will be moved to the Trash folder. This feature makes it extremely difficult to accidentally delete a post or page from your WordPress website. Items within your trash folders can be restored or permanently deleted within 30 days after it is sent…

Get The First Image From Posts & Display
[ad_1] Post Thumbnails is a theme feature introduced in WordPress Version 2.9. It was quickly changed to Featured Images with Version 3.0. Basically, Post Thumbnail/Featured Image allows you to upload and assign a custom image to an article that is chosen as the representative image for Posts, Pages or Custom Post Types. Usually blog owners…

Clean Up WordPress Dashboard Widgets
[ad_1] WordPress admin dashboard comes with many widgets out of the box. But unnecessary WordPress dashboard widgets can be confusing for new users or clients inexperienced in using WordPress. It could be a little overwhelming for them at first time they log in. Clean up WordPress dashboard can also help you simplify WordPress for users…

Enable Automatic Updates For Major WordPress Releases
[ad_1] WordPress recently introduced automatic WordPress updates in version 3.7. WordPress can now automatically update itself without any user input, when there is a new minor or security release available. Earlier we showed you how to disable automatic updates in WordPress for manual updating. But if you really like the idea of auto-updating WordPress, then…

Disable Comments in Old Blog Posts via PHP
[ad_1] Whilst comment spam does occur on new articles, it is more common for comments spammers to target older blog posts that have established traffic and a good search engine ranking. These articles can sometimes be years old, so you may not even notice that they have been attacked. Disable comments on such old posts…