Category: Code Snippets
-

Change Excerpt Length For Different Categories
[ad_1] Do you ever wonder how you could be able to change excerpt length based on category the post belongs to. In this article we will be discussing how to change excerpt length for different categories. Post excerpt has a default length of 55 words but sometimes you want to modify this limit for certain…
-

Remove WordPress Version From The Admin Footer
[ad_1] The WordPress admin footer bar shows the current WordPress version on the right side. But there are times when you want to remove WordPress version from the admin footer or perhaps you want to change it and provide additional link to your website for branding purposes. We are going to demonstrate both of these…
-

Remove Default WordPress Widgets From Dashboard
[ad_1] WordPress comes with a number of in-built widgets which allow you to easily add additional functionality to your WordPress theme. You can use WordPress Widgets to add content and features to your sidebars or to any other predefined widget locations. But nobody uses all the default widgets. In fact, there are probably a few…
-

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…