Exclude category from loop, the Polylang way
-
Hello
Great plugin! An issue though:
I have a Blog with Polylang installed, running two languages. The blog works fine until I try to remove a category from the loop.
If I write the following
<?php query_posts('cat=-23'); ?>
Just before the
<?php if ( have_posts() ) : ?>
What happens is: every post from BOTH languages is listed, minus posts from that one category.
So my question: How can I remove one or multiple categories from the loop and still display only posts from the current language?
Thank you very much!
Meanwhile I’ll keep investigating the issueRegards
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Exclude category from loop, the Polylang way’ is closed to new replies.