Custom Field query with multiple statements

admin

Administrator
Staff member
In wordpress, I want to query ONLY all posts that has
Code:
mata_key
"
Code:
forside_storrelse
" with value
Code:
300 x 339 px (artikel)
OR
Code:
615 x 600 px (featured artikel)
.

It should only show the 5 latestest and be sortet by
Code:
mata_value_num
which is the value of the meta_key
Code:
wpb_post_views_count
.

I can't see whats wrong here below. It dosen't work :(

Code:
array( 
    'posts_per_page' => 5, 
    'meta_key' => 'wpb_post_views_count', 
    'orderby' => 'meta_value_num', 
    'order' => 'DESC',
    'meta_query' => array(
        'relation' => 'OR',
        array(
            'meta_key'      => 'forside_storrelse',
            'meta_value'    => '300 x 339 px (artikel)',
            'meta_compare' => 'LIKE'
        ),
        array(
            'meta_key'      => 'forside_storrelse',
            'meta_value'    => '615 x 600 px (featured artikel)',
            'meta_compare' => 'LIKE'
        )
    )
)