I have this function hardcoded into content-single-product.php (WooCommerce) and it works to show 3 random products from categories ID 64 and 72: $args = array( 'post_type' => 'product', 'post_status'...
What is the best way to display/dump all custom fields associated with a post? It doesn’t have to be pretty, I just need to verify what is being saved...
I have a taxonomy of menus i.e. Coffee, Tea, Sandwiches, Cakes etc. I want to add more information ‘about’ the taxonomy such as an image that represents it alongside...
How can I add custom metabox in document tab in gutenberg? There is documentation about adding plugin sidebar here, but I’m looking for adding custom metabox in existing document...
SELECT max(meta_value) FROM wp_postmeta WHERE meta_key=’price’… stops working when value is over 999
Overview: I am not trying to return a post. I simply want the single highest value for a particular meta_value across all posts… just the value itself. Details: I...
I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have...
I want to add a custom fields (“introduction” and “ensavoirplus”) to search of WordPress, but the SQL code is not exact. I don’t understand if i do a mistake...
By default, the User Profile page has a few options and fields that the user can set. Such as the following: Personal Options -- Visual Editor -- Admin Color...
I use custom fields for lots of my content on both Posts and Pages, so that half of the text will be in the main post body and the...
I am using the “Types” wordpress plugin for the first time. I created a custom post type, as well as some custom fields. How do I dynamically call all...