List of posts by day of the week

What about using just get_posts (removing the order_by argument), then looping through to create and array of programs, then building the output from that: $posts = get_posts(array(‘post_type’=>’programas’,’meta_key’=>’audio_date’)); $programs = array(); foreach ($posts as $post) { $days = get_post_meta( $post->ID, ‘audio_date’, true ); // $time = get_post_meta( $post->ID, ‘audio_time’, true); $found = false; foreach ($days as … Read more

meta_query all posts between to ages

you can write like for this. ‘meta_query’ => array( array( ‘key’ => ‘_age_from’, ‘value’ => sanitize_text_field( $_REQUEST[‘age_from’] ), ‘compare’ => ‘>=’, ‘type’ => ‘NUMERIC’ ), array( ‘key’ => ‘_age_to’, ‘value’ => sanitize_text_field( $_REQUEST[‘age_to’] ), ‘compare’ => ‘<=’, ‘type’ => ‘NUMERIC’ ) );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)