This code snippet adds a preview button to the right of the Save button in Distraction Free Editor in WordPress. Drop the code in your active theme’s functions.php file.
This code snippet will allow you to show different number of posts on homepage, per category, and post type without using any plugin.
Add any of these code snippets to your active theme’s functions.php file in order to include or exclude one or more categories from the loop on your home page.
Drop this code snippet into your theme’s functions.php file to enable user login with email address, and also change login page text to inform about this functionality.
A WordPress code snippet to add navigation links to next and previous posts in the Post Editor page. Links are also shown for custom post types.
This snippet of code will allow you to add custom media type filters in the WordPress Media Library. The code as it is will add filters for DOC, XLS, PDF, and ZIP files.
Drop this code into your theme’s functions.php file to remove both ‘website’ and ’email’ field from WordPress’ comment form
This action will remove WordPress functionality of saving a commenter’s information – name, email, and website – in a cookie on their browser.
This code will return an unordered list of most commented posts in the last 30 days. You can easily customize it as per your preference.
A quick bit of code to delete all trackback or pingback comments from WordPress posts. Access database and run this SQL command.