excluded categories make optioncount appear as 0
-
I have 12 categories — 4 I want to appear in my header, and 8 I want to appear in my sidebar. So I excluded the 8 from the header.php file, and in the sidebar file, I excluded the header’s 4.
Now here’s the problem: I want the categories in the sidebar to display their number of posts (the optioncount=1) tag; however, since I excluded them from the header, they invariably display (0) as their post count.
Only when I un-exclude the post from the header does the optioncount appear correct. However, then the button appears back in the header, where I don’t want it. How can I just get the optioncount to show the correct # of sidebar category posts?
Here’s my site: https://stc-suncoast.org.
- The topic ‘excluded categories make optioncount appear as 0’ is closed to new replies.