New answers tagged

1 vote
Accepted

Update post meta custom field using block editor

how to update post meta in a custom field in response to a user interaction in the editor? editPost() can be used for that, but https://developer.wordpress.org/block-editor/reference-guides/block-api/...
user avatar
  • 33k
0 votes

SELECT max(meta_value) FROM wp_postmeta WHERE meta_key='price'... stops working when value is over 999

Here is a kludgy way I did it using php max array and built-in WP_Query function get_max_post_meta_value($category_id) { $args = array( 'post_type' => 'cpt-name', 'post_status' =&...
user avatar

Top 50 recent answers are included