WP_Query search by meta_key and category_name

I see how to do multiple meta_keys or multiple category_names, but how do I combine them? $args = array( ‘post_type’ => ‘quotes’, ‘meta_key’ => ‘newsletter’, ‘…

How to auto update an acf field based on the condition?

I have two custom post types with acf fields. Custom Post_A, which has 2 fields – title / submitted Custom Post_B, which has 2 fields – title / percent Both Post_A and B have the same title (which is …

How to get the complete state name from a WooCommerce order?

I’m new to WordPress and WooCommerce plugins and such. I’m writing a plugin and I need to send some data to a SOAP API, the case is that the API only accepts the state full name but I’m only getting …

get post meta for all id [closed]

I want to get all brands from DB. It should work like get_post_meta( get_the_id(), ‘make’, true); but without id. It should contain an array with all brands. Which command I should use?

Can I add data to an incoming REST request in WordPress?

I’m currently looking for a way to add additional data to a WordPress REST request directly when it reaches WordPress so that I can access the data “later” in each REST route callback. I’ve …

Add, update or remove product custom field in WooCommerce

I use the following lines to save a Value to the database. I have one question regarding this code, when I delete input it still keeps it. The only way to delete that is to put (space) as input. $…

How can I automatically add random description to posts with empty content posted to WordPress?

I would like to automate the process of adding descriptions for articles published on my site. I would like to automatically insert a random description from a list of pre-edited (Advanced Custom …

how to get specific key and its value from object

How do I get specific key and its value from object? Example I have output of my query: “attribute_summary”:”Color: Red”, “meta_data”:[ { “id”:…

WooCommerce – Can’t add a inside the return

I’m using the following code to change the add to cart button text in WooCommerce. add_filter( ‘woocommerce_product_add_to_cart_text’, ‘custom_add_to_cart_price’, 20, 2 ); // Shop and other archives …

How to display sub field (image) with shortcode in WordPress?

These are the custom fields composition: 1 Group Footer 1.1 Group Col2 1.1.1 bbcimg (this is the image ID) 1.1.2 bbc-rss (this is the RSS feed ID) I have the following code displaying the bbc-rss: <…