alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] Only first widget logic widget appearsnope there should be no limit, and if the WL field is blank, the widget should appear. not sure what’s going on there, sorry. what happens if you put ‘true’ in a widget logic field?
Forum: Plugins
In reply to: [Widget Logic] True condition that failsa longer explanation is here
http://wordpress.org/extend/plugins/widget-logic/other_notes/
but in brief, the shorthand of putting in a statement with a simple true/false value like is_home() was so clearly useful that I made it so that WL adds a “return … ;” around text that doesn’t have an explicit “return” in it by default.
Forum: Plugins
In reply to: [Widget Logic] True condition that failsyou need a final semi-colon, sorry should have said
Forum: Plugins
In reply to: [Widget Logic] True condition that failsyou don’t explicitly return a value – which might be the issue. stick in something like
return ($primary_placement == ‘writing-home’)
in version 1 for instance, and it might work. (Though I’ve not followed through the logic of the wp_get_post_terms bit entirely)
if you don’t have any code in your widgets’ “widget logic” text, then that would be odd, and the problem is somehow with the plugin. the problem look like the plugin is executing your widget logic code, and that code has some syntax issues.
the “syntax error… eval()d code on line…” error is a problem with the code in the logic for one of your widgets
Forum: Plugins
In reply to: [Widget Logic] How to use Widget Logic with Woo Commerce product categories?good stuff.
Forum: Plugins
In reply to: [Widget Logic] How to not show Home page in page list?i think you need a plugin that gives you a pages widget you can control better
have a look at this one http://wordpress.org/extend/plugins/exclude-pages/
Forum: Plugins
In reply to: [Widget Logic] How to use Widget Logic with Woo Commerce product categories?just a guess but it looks like they are saying you just need to use the is_tax tag. something like
is_tax( ‘product_cat’, ‘kaunokirjat’);
or the ID of that product_cat ID instead of the slug string
Forum: Plugins
In reply to: [Widget Logic] True condition that failsoh yes, sorry – not paying attention there! so just $post is needed
Forum: Plugins
In reply to: [Widget Logic] True condition that failsdid you put in a global statement to import $terms and $post into the widget logic?
Forum: Plugins
In reply to: [Widget Logic] Delay Load of widgetI can’t think of a good way that the plugin will help you with this – through filters or otherwise, sorry.
Forum: Plugins
In reply to: [Widget Logic] Don't display on single pages in a specific tagtry
!( is_single() && has_tag(array(…)) )
that is you are missing the () after is_single, and need those outer brackets. I think. (replace … with your list of tags of course!)
Forum: Plugins
In reply to: [Widget Logic] Widget misbehaving on responsive websiteThis has been marked as resolved! What did you find out?
Forum: Plugins
In reply to: [Widget Logic] Widget misbehaving on responsive websiteall I can think then is that the theme is getting in the way – manipulating the query or something like that, so is_home() and is_front_page() aren’t evaluating as expected. see if it works as expected with one of the default themes.
if so you may have to find some ‘proxy’ condition that holds true on the home page – but it’s going to depend massively on the coding of the theme – and it LOOKS like that’s quite bespoke, so I’ve no way to help you with that I’m afraid.