Hot answers tagged custom-field
Add a meta box to your custom post type edit screen to contain your markup. Check the $pagenow global to only show it on post.php, not post-new.php, and check $current_user global for administrator role to exclude other user roles. Also, if you aren't familiar, check out the $wpdb class for your queries, and read up on using AJAX in WordPress. EDIT use ...
did you try to call like this: $args = array( 'post_type' => 'product', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'spec', 'value' => 'choice2', 'compare' => 'LIKE', ), array( 'key' => 'spec', 'value' => 'choice3', 'compare' => 'LIKE', ...
Have you read the documentation already? Seems it would be as simple asthe_field( "text_field" ); where text_field is the name of the field ofc.
Only top voted, non community-wiki answers of a minimum length are eligible