Set allowed categories
-
Hi there,
I use this query to allow access to specific post categories:
$query->set( ‘cat’, ‘1’);
But when doing so, not only my posts without cat 1 are invisible, a lot of different elements are gone too (pages in the backend, media…).
I necessarily need to allow cats. To use ( ‘cat’, ‘-x’) wont be an option right now..
Does someone has an idea to fix this?Thanks in advance
Pascal
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Set allowed categories’ is closed to new replies.