How to get an archive page meta?

From the get_post_meta() function reference, Retrieves a post meta field for the given post ID. The function is inteded to be used with posts (any type), not post type archives. You’ll need to dig into the documentation provided by the plugin author to find out, how to retrieve meta data for a post type archive.

meta_query Array

Probably what you wnat do is : update_post_meta( $post_id, $meta_key, serialize($meta_value)); or to create : add_post_meta( $post_id, $meta_key, serialize($meta_value)); or to delete : delete_post_meta( $post_id, $meta_key);

Use meta_query in args for relationship

I finally managed to solve it myself, this is the code I used: if($tema == ” && $software == ” && $volatilita == ”) { $args=array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘orderby’ => ‘meta_value meta_value_num’, ‘order’ => ‘DESC’, ‘paged’ => $paged, ‘cat’ => $categoria_slot_machine, ); } elseif($tema != ” || $software … Read more