Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Tiago ADPS on "Exclude category from loop, the Polylang way"

$
0
0

Hello Chouby,

Thank you for the answer.

The problem still persists though.
The original code is working as it should, but if I use:

<?php global $wp_query;
query_posts(array_merge($wp_query->query, array('category__not_in' => array( 61, 85 )))); ?>

Right before the:
<?php if ( have_posts() ) : ?>

Both categories are removed, but all the posts from the second language are added.

Am I doing something wrong? I'm sorry if so, but my php skills are very... moderate.

Thank you very much once more.


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>