Polylang and custom query…
-
Hi there,
Is there currently a way to use modified query vars with Polylang enabled?
Polylang currently prevents custom post types from showing alongside regular posts on my ‘Latest’ page using the following custom query:
$args=array( 'post_type' => array( 'magazine', 'presse', 'post' ), 'post_status' => 'publish', 'posts_per_page' => 8, 'orderby' => 'post_date', 'order' => 'DESC' ); $query = new WP_Query($args);
Disabling Polylang gets the posts to appear correctly. Is there any way to get this to work?
Thanks in advance…
Simon
Permalinks: https://www.rootsite/%category%/%postname%/
Static front page.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Polylang and custom query…’ is closed to new replies.