Add color picker to wordpress admin metafield

Step 1 Enqueue the script & stylesheet for the WordPress color picker.

  Step 2 Add an id=”my-color-selection” or class=”my-color-selection” reference to the custom meta field you would like to use as the color picker. You can also add … Continued

Show posts where checkbox meta_query is checked/true

Show all posts where the post meta field checkbox is checked requires adding a meta_query to your query arguments.

 

Taxonomy Custom Meta Fields

Adding custom meta fields to taxonomies can be useful for associating images, icons or more information to custom taxonomy terms in WordPress. Custom meta fields can also be added to posts, pages and custom post types. Three functions can be … Continued