We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I been trying to make query with meta_query but it dose not work and I need to use paging as well..
anyway to fix that... Thanks Example here:
$today = date('Ymd'); $args = array( 'multisite' => 1, 'sites__in' => array( 1, 2, 3, 5) 'meta_query' => array( array( 'key' => 'date', 'compare' => '>=', 'value' => $today, ), ), 'tax_query' => array( array( 'taxonomy' => 'category', 'terms' => '4', ) ), 'post_type' => 'post' , 'orderby' => 'meta_value_num', 'posts_per_page' => 4, 'paged' => $paged, 'order' => 'ASC' );
The text was updated successfully, but these errors were encountered:
same issue here
Sorry, something went wrong.
No branches or pull requests
Hi,
I been trying to make query with meta_query but it dose not work and I need to use paging as well..
anyway to fix that...
Thanks
Example here:
$today = date('Ymd');
$args = array(
'multisite' => 1,
'sites__in' => array( 1, 2, 3, 5)
'meta_query' => array(
array(
'key' => 'date',
'compare' => '>=',
'value' => $today,
),
),
'tax_query' => array(
array(
'taxonomy' => 'category',
'terms' => '4',
)
),
'post_type' => 'post' ,
'orderby' => 'meta_value_num',
'posts_per_page' => 4,
'paged' => $paged,
'order' => 'ASC'
);
The text was updated successfully, but these errors were encountered: