Category: Code Snippets
-

How to Allow Users to Login With Email Address in WordPress
[ad_1] WordPress by default assign a unique username to each user on registration. As usernames are unique on a WordPress website, there is a fine possibility that the username a user wants to register has already been taken by another user, in that case, he have to choose a different username that user might not…
-

How to Change WordPress Email Content Type to HTML Instead of Text
[ad_1] WordPress uses wp_mail function to send all emails and the default content type for these emails is text/plain. It simply means that all emails, goes through WordPress, will be sent in text format only and WordPress will not allow any HTML to be placed in your emails. But on a project, you may require…
-

How to Stop Loading Contact Form 7 JavaScript And CSS in WordPress
[ad_1] Contact form 7 is undoubtedly one of the most popular plugins in WordPress plugins directory. It makes our life a lot easier by allowing us to create contact forms without any PHP knowledge and add them in our website with the help of shortcode. The plugin is super easy to set up and use.…
-

Change the Search Results Page URL Slug to ‘/search/term’
[ad_1] Default WordPress URL Structure is not the most Search Engine friendly, and it certainly is not very user friendly too. But WordPress has built in option to enable SEO friendly URLs to make URLs more user friendly. All you need to do is to login to WordPress admin panel and pick a permalink structure…
-

Strip HTML Tags From the_terms Function Output
[ad_1] If you need to display the terms list of the current post on your website then you must use the_terms function. WordPress function the_term displays the linked terms of a taxonomy separated by user defined characters. It’s very powerful function to get list of categories, tags or any other custom defined taxonomies in WordPress.…
-

Disable Content Editor for Specific Page Template
[ad_1] While working on a project I needed a way to disable content editor on a specific page. Why you asked? On this project, I created a custom page which has lots of meta-boxes on editor screen and we were not using visual editor for adding any content on that page so we wanted to…
-

Add Featured Post Thumbnails to WordPress Admin Post Columns
[ad_1] Have you ever wanted to see the featured post thumbnails associated with your posts, without going through each post individually? Wouldn’t it be nice if you can see all post thumbnails while viewing the list of posts in the WordPress admin? If you want this feature to add in your website then you are…
-

Redirect WooCommerce User to Checkout Page After Add to Cart
[ad_1] WooCommerce is one of the best e-commerce plugin for WordPress. I have used it on couple of website that I built for my clients and setting up e-commerce platform with WooCommerce is super-duper easy. Although the plugin works flawlessly out of the box but there is always room for improvement. Right! So today I…
-

Insert Google Maps Using a Shortcode Without Using a Plugin
[ad_1] Google Maps is probably one of the best services out there for people to quickly get directions online. For business point of view, there are number reasons, why you should embed a Google map into your WordPress website. Whether you want to guide your users to your physical location or maybe you are just…
-

Force WordPress to Select Thumbnail Image Size by Default in WordPress Media Uploader
[ad_1] With WordPress 3.5 release, WordPress core team introduced many significant changes in the core and Media Uploader was one of the most important one. This new WordPress Media Uploader has a number of advantages over the previous version. For instance it has drag and drop support, easier management of galleries, cleaner interface and much…