dblast
Member
Posted 11 months ago #
Hi all, I've almost got my blog ready for release and I am happily using widget logic but I am running into a snag. I have various text boxes displaying graphics on my site that change with every page. But the post page (nov/dec) don't display the graphics as all the other pages do. I have the posts under category 1 (that what is says the Id is) I tried the following.
(is_home()|| is_category(1)|| is_page('109')|| is_page('70')|| is_page('53'))
Is there a way to indicate to display this text widget on all posts?
Thanks
Dan
alanft
Member
Posted 11 months ago #
check this out for more general help
http://codex.wordpress.org/Conditional_Tags
i'm not 100% sure i've understood you, but if you are after widget logic to show a widget on individual posts in a specific category, you can use
is_single() to indicate a single post
in_category(1) to indicate a post in category 1
or (is_single() && in_category(1)) to combine them both with an AND
dblast
Member
Posted 11 months ago #
Sorry for not being clear.
My webblog: http://www.warrior-scholar.com/wordpress
The right side menu has a martial art graphic in the upper right corner which changes with every page. The home page is a static page and for what ever reason the posts (listed under thoughts Nov/Dec) have no graphic even though I insert the conditions:
(is_home()|| is_category(1)|| is_page('109')|| is_page('70')|| is_page('53'))
The posts are under a category called 'General Information' and the ID is '1' I even tried is_category('General Information') etc. I can't get the post page to show that widget containing the graphics.
Thanks
Dan
alanft
Member
Posted 11 months ago #
ah, those pages
wordpress/?m=200812 and
wordpress/?m=200810
are archive/date pages
http://codex.wordpress.org/Conditional_Tags#A_Date_Page
you probably want is_month()
dblast
Member
Posted 11 months ago #
Awesome thanks for a great plug in!