How To Query With Custom Custom Post Type Fields
In this article I will guide you to make custom query in wordpress with custom fiedls , this is commonly used in the sales page to filter out attributes such as promotions, out of stock …
For example, you declare a custom post type called “product ” , the floor you want to filter out the products being sold , the custom fields we created one key attribute with the ” ban- vegetarian ” and the value is ” board – vegetarian ” , we query like the following example
Done , that was too easy , but the small actions bring great effect for you .
I say always available facilities or taking their first plugin to support that this is “just custom fields” , it gives us create custom fields under different customer types such as checkboxes , radio … as in our example above in the configuration of the “just custom fields” we create one checkbox field called ” ban- vegetarian ” and value is ” board – vegetarian ” then one to check on the product there selling buttons is ok .
Wish registration