How to add custom fields to quick edit in WordPress

category:  WordPress

A quick edit is one of useful feature from WordPress. It is useful when you just want to add or edit a small changes for your pages or posts without loading the whole content editor page. By default, quick edit allows you to change the title, slug, published date, password, categories, template, tags, allow comments, allow pings, post status and post sticky setting. But if you have your own custom fields and want to add them into the quick edit, … Read More

How to add custom fields to your WordPress

category:  WordPress

For my work, I am often requested to do the customization for my clients. One of the most requests are adding the new custom fields to the posts or pages. The benefits for creating the custom fields are for organizing the data and grouping them. For adding the custom fields to your WordPress, there are two common ways to do. One is using the plugin and another one is using the WordPress API. In this post, I will share two … Read More

Search by Custom Fields without a plugin

category:  WordPress

Lately, my client requires me to add the ability to search by custom fields at the backend. Today I gonna share what I did. There are three filters we will use. posts_join posts_where posts_distinct Below what page will be implemented. You can add the code below into functions.php or your own plugin. $_GET[‘s’] is the search input on the edit page. The posts_distinct filter is needed to prevent duplicate data. Yeap! that’s it. If you are looking for adding the … Read More