Page category not excluded from front page
-
Hello,
I want to exclude a certain category from my home page, which is simple enough to do. However, what I have done is:
1. Add categories to Pages.
2. Exclude the PAGE category from front page.Result: It still shows all pages. Does not exclude anything. I think the problem may be the category – page relationship. It seems to work for post type just not for page type.
Any ideas?
BTW: here is the query:
$wp_query->query(‘posts_per_page=’.$home_count.’&post_type=page&page-category=squeeze’.’&paged=’.$paged);Thanks all.
- The topic ‘Page category not excluded from front page’ is closed to new replies.