alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Same widget on multiple sidebarsI don’t think so, no. Could you just have one sidebar that’s persistent and appears above/below the others?
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] excluding home pageall of the instances of in_category(…) need to be (is_single() && in_category(…))
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] excluding home pagewhat’s the logic you are using?
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] excluding home pageCheck http://wordpress.org/extend/plugins/widget-logic/faq/ “How do I get a widget to appear both on a category page and on single posts within that category?”
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] excluding home pageThis is from http://wordpress.org/extend/plugins/widget-logic/faq/ “Widgets appear when they shouldn’t”
your logic for the widget that is appearing when it shouldn’t probably has something like in_category(x) and it needs to be is_single() && in_category(x)
shall i mark this as resolved?
i use it ok on 3.4.1 ok
but it comes with a function to let you detect mobile devices
MobileDTS::is(‘mobile’)
you could try a plugin like this one
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Randomize Widgetsugh copy/paste error
rand (1,2)this bit generates a random integer between the 2 values. so use (1,n) depending on the number of widgets involved.
I still think there must be an ad rotator out there to suit you – it’s basic stuff for a blog.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Randomize Widgetsit depends on the exact effect you are after. If you want 1 of N widgets to appear, you could do this
widget 1 (the first one defined):
global $widget_rnd; $widget_rnd=rand(5, 15); return (1==$widget_rnd);widget 2
global $widget_rnd; return (2==$widget_rnd);and so on. (nb, i’ve not tried this out.)
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Randomize WidgetsUsing widget logic for that wouldn’t ‘scale’ very well, and would probably prove fiddly to get the effect you are after. I am sure there are ‘ad rotator’ plugins/widgets out there you might find more productive.
(been off the grid for a couple of weeks, will get back and look at this soon)
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Single Page Logic Not Workingtry without the parameters for is_single…
is_category( array( '6', '7', '14' ) ) || (is_single() && in_category( array( '6', '7', '14' ) ) )is_single can be given an array as paremeters, but…
http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Pageit’s to match the ID of the post
This might be
http://wordpress.org/extend/plugins/widget-logic/faq/
What’s this stuff in my sidebar when there are no widgets?Check it out, let me know