Skip to content
New issue

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

meta_query does not work with WP Query Multisite #17

Open
Wooody82 opened this issue Dec 1, 2015 · 1 comment
Open

meta_query does not work with WP Query Multisite #17

Wooody82 opened this issue Dec 1, 2015 · 1 comment

Comments

@Wooody82
Copy link

Wooody82 commented Dec 1, 2015

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'
);

@Wooody82 Wooody82 changed the title meta_query does not work WP Query Multisite meta_query does not work with WP Query Multisite Dec 1, 2015
@jasmines
Copy link

same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants