geoffcj
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Displaying text&shortcodes based on post dateI will ask there, thanks for the link but is their a way to just put that whole chunk of text inside of an If statement?
Like
If postdate>kidsbirthday, HOW-OLD-AM-I, else NOT BORNForum: Plugins
In reply to: Adding sidebar widget only for certain categoriesThis code:
is_category(kayak) || (is_single() && in_category(kayak))Seems like it would do what I want, but it doesn’t. I get the widget displayed if I click on the category Kayak, but a single post within that category doesn’t have the widget.
???
Geoff
Forum: Plugins
In reply to: Adding sidebar widget only for certain categoriesAlanft,
I had seen the codex page, but when I changed the logic code to in_category, the widget doesn’t appear anywhere.
Thanks,
GeoffForum: Plugins
In reply to: Adding sidebar widget only for certain categoriesAlanft,
Thanks. Hopefully you’ll see this, but I installed your plug-in and I’m still having trouble getting the logic to work.
If you look at my site, https://kimandgeoff.com , I’ve got a Category “Kayak”. I installed your widget, and used the logic is_category(Kayak) to display a link to my Ning site. It shows up when you click on the category Kayak, and not elsewhere, so I’m partway there.
I’m trying to write the logic statement to make it appear there, or in the sidebar for any post that is in category Kayak, and can’t get that to work. Any hints?
Thanks,
GeoffForum: Themes and Templates
In reply to: if post count = 1, use template single.phpFor some reason, this isn’t working for me. I assume I’m supposed to rename parts of it with my template names? I tried that, but ti still doesn’t work. I’m new to WordPress and PHP, so a explanation would be very much appreciated, it is exactly the functionality I’m looking for.
Geoff