Sidebar Widget – Show on Condition of content?
-
I have a sidebar widget I’m setting up called “spotlight”. I’ve created a custom post type for it and am then putting the code in a PHP code box so the client creates a new post in “spotlight” and it shows up in the sidebar. The question is this: Until the client actually posts something in that category/custom post type, they don’t want the box showing up. I know there’s a way to do this but for the life of me I can’t find any information on it. It’s not something I do often, so I don’t have it memorized either.
To top it off, I’m using CSS to replace the h2 tag the widget spits out and that needs to not be there too if there is nothing posted in “spotlight”.
TIA!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Sidebar Widget – Show on Condition of content?’ is closed to new replies.