[help] how to show a REAL single category ?
-
Case :
post 1, category “banana”
post 2, category “banana” and “apple”
post 3, category “banana” and “manggo”
post 4, category “banana”
post 5, category “banana”, “apple” and “manggo”Default result in “banana” category page ( https://my_site/category/banana/ ) will show post 1,2,3,4 and 5.
Primary Question :
How do I show only post 1 and 4 (it’s mean the post which have only single category) in “banana” category page ?
Since,
1) conditionis_category()
didn’t work for this case becauseis_category('banana')
will always show post 1 – 5.
2) queryquery_posts("cat=1");
orquery_posts('category_name=banana');
has the same result too.Secondary Question :
May be my primary question will solved if somebody can tell me how do I check if post have only pure one (single) category or more in query before push it to the loop ?I appreciate U’r help and thx before..
- The topic ‘[help] how to show a REAL single category ?’ is closed to new replies.