alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] Weather widget and Widget Logichard to say – i tried installing the same widget on my WP install and it showed nothing anyway. can you a second widget with no widget logic in it so i can see the difference on your own page.
of course it might be that activating WL plugin entirely causes the blanking, in which case I’ll look closer at the weather plugin code
Forum: Plugins
In reply to: [Widget Logic] Content Slider and Widget Logic?have you sorted out how to write logic using the custom field? (you seem to say yes you can and it works fine without the slider, but also “how do I tell WL to fetch it?)
get_post_custom_values()
http://codex.wordpress.org/Function_Reference/get_post_custom_valuesis definitely a good start – but if you’ve sussed that, got it working and the slider plugin is preventing WL from seeing the custom value, that’s baffling, but you may have to contact them for some info as that is a paid for (and presumably supported) plugin. (Which also means I can’t look at the code to see how on earth that happens.)
Hope that helps
Forum: Plugins
In reply to: [Widget Logic] Does this disable the widgets??it stops any HTML being output for that widget as if you hadn’t added it to the sidebar.
Forum: Plugins
In reply to: [Widget Logic] dont show on blog specific pageshould be AND like this…
!is_home() && !is_page(‘pagename’)
is_single() && in_category(array(4,5,12,13))
should work fine for any single post in one of those categories
Forum: Plugins
In reply to: [Widget Logic] Combining Conditional Tagshttp://codex.wordpress.org/Function_Reference/is_search
is_search doesn’t take parameters I’m afraid. if plain is_search() doesn’t make a widget appear on a search results page, there is something else going on.
if you want a widget to appear when certain search terms are checked for, that’s going to be some sort of combo of is_search() and $_GET[‘q’]==”English Teacher” but that’s going to need some extra cleverness to not be case sensitive or word order specific and so on.
Forum: Plugins
In reply to: [Widget Logic] is_home(), is_front_page() not workingif it’s just the footer that’s troubling you, here’s a hack-y suggestion… line 8 of footer.php
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer") )before the “if” add in
wp_reset_query();Forum: Plugins
In reply to: [Widget Logic] is_home(), is_front_page() not workinghmm, yes it does many query_posts but the sidebars are all after those. there’s some chance the wp_reset_query option might help. give that a go
http://wordpress.org/extend/plugins/widget-logic/screenshots/
Forum: Plugins
In reply to: [Widget Logic] is_home(), is_front_page() not workinga lot of themes do custom code for the front page that can negate WP’s is_front_page() condition. I expect if you switched themes the problem would go away. Is the front page theme code available to look at?
Forum: Plugins
In reply to: [Widget Logic] Debug noticesthe “(284): eval()’d code” bit points to the problem being in the logic of one or more of your widgets. Check for logic using $post, without a “global $post;” at the start – which would explain both errors
Forum: Plugins
In reply to: [Widget Logic] exclude from category -both category landing and single poststhe opposite of that, to make it appear on a category page or single posts is in the FAQ as
is_category(X) || (is_single() && in_category(X))
so reverse that with !( … ) around it like this…
!( is_category(X) || (is_single() && in_category(X)) )
Forum: Plugins
In reply to: [Widget Logic] Parse error eval code on line 1It’s likely the spaces between the function name and the brackets, so should look more like
!is_page(31)
instead of
!is_page (31)
and so on
Forum: Plugins
In reply to: [Widget Logic] Parse error“syntax error… eval()’d code” points to there being a problem with some of the widget logic in one of your widgets. check the code, and if still stuck, try clearing out the code to see which widget when you wipe it stops the error
Forum: Plugins
In reply to: [Widget Logic] True condition that fails🙂
Forum: Plugins
In reply to: [Widget Logic] True condition that failsyes it would.
there’s some chance there’s problem with the ‘;’ in your if statement too by the way – though i’m not confident about that. but as the block “inside” the if is a single statement you could just remove the {} braces and it will work ok. I think