Widget Logic Troubles With Category Filter Applied
-
Hi All,
I am definitely a newbie, but I am getting up to speed quickly. I am using WP as a CMS for my site TrueFatherhood.org and therefore I am trying to use pages for each main category (Articles, Blog, Reviews, Quotes). I am using pages to accomplish this and on each page I am using the
<?php query_posts('cat=5'); ?>
before “The Loop” on each page (where the number matches the pages category.Anyway, now I wanted to take it to next level and start selectively displaying widgets on each page. This is when Widget Logic entered my life. I installed it, but noticed that none of the logical conditions I was using evaluated to TRUE. So I started playing a round and flipping switches. I came to find out that for example on the “Reviews” page the logic in Widget Logic of
is_category('Reviews')
evaluated true whileis_page('Reviews')
did not.Then I looked at the
<?php query_posts('cat=5'); ?>
before “The Loop” on each page. I found that if I removed it then suddenly logical statements started behaving differently. Suddenlyis page()
was TRUE andis_category
was false. This seemed very strange to me, but I am a newbie.Anyway, is there anyway to have the best of both worlds? I want to filter the page content to a category and I want to filter the widgets likewise as well.
Any advice would be appreciated.
Many Thanks,
James
MiOtraCosa
- The topic ‘Widget Logic Troubles With Category Filter Applied’ is closed to new replies.