alanft
Forum Replies Created
-
I added that plugin, and it behaves OK as far as I can see. I hid it with ‘false’, and then made it appear on my own author page with “is_author(‘alan’)”, and all *seems* well.
i’ll try fiddling with some settings to see if I can force it to misbehave. I assume the error is appearing on the wordpress/wp-admin/widgets.php admin page, yes?
There are 2 search buttons I can see, but neither of these would seem to bear on what widget logic does. I’m sorry.
I think the search on the left side is this plugin
http://wordpress.org/extend/plugins/cat-tag-filter-widget/
if it helps you. All the best.
Sorry, I’m not really clear if this is about widget logic. Could you expand on your problem with some more specifics. which select box, which results, etc
can you link to the shopping cart plugin so i can try it out
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Not display correctlyhttp://wordpress.org/extend/plugins/widget-logic/developers/ for older versions (this works for all plugins I think)
and the value is changed on the widget options page – check the screenshots
http://wordpress.org/extend/plugins/widget-logic/screenshots/
if it worked before 0.5 then chances are changing the load logic point to ‘during page header’ will sort you out. Further explanation:
http://wordpress.org/extend/plugins/widget-logic/installation/
no that’s not going to work, as in_array’s first parameter is a single value, and the 2nd is an array to look through. get_post_ancestors returns the array to check.
http://codex.wordpress.org/Function_Reference/get_post_ancestors
You’ll have to try something like
global $post; $ancestors= get_post_ancestors($post); return !in_array(‘addiction-treatment-centers’,$ancestors) && !in_array(‘addiction-counselors-and-therapists’,$ancestors);
Can I ask, upthread you said “I understand why it caused an error”, but I can’t see why. Perhaps if you explain that, it might make something else clear that caused this.
Forum: Plugins
In reply to: [Widget Logic] widget-logic errorthanks for the screenshots, but I can’t tell a lot from them. Can you identify which widgets are causing the problem – and if so what’s the WL code in them.
You could try saving out the WL options (for safe keeping) and blank each widget in turn temporarily to see which code produces the errors.
yep, that’s a mini backup of just the WL options. I’m intrigued to track down what would lose you all your WL options though, so I tried putting in
global $post; return (!in_array(2872,get_post_ancestors($post)));and it did nothing on my own install. It didn’t throw an error either. Why does this throw an error for you – it’s not obvious to me!
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] is_singular() not workingno idea here sorry. i don’t have custom post types to test this with. Might give it a go when I have some time.
Forum: Plugins
In reply to: [Widget Logic] widget-logic errorYour widget logic has a syntax error in it that may have been valid in the previous version of PHP
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Is there a "is_subpage" alternative?Glad to help.
if you have complex code it’s a good idea to bundle it up in a special function, put it in functions.php and then call that from the Widget Logic…
eg in function.php
function my_is_direct_child_of($id)
{ global $post;
return ($post->post_parent==$id);
}in widget logic: my_is_direct_child_of(1153)
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Is there a "is_subpage" alternative?in the box at the bottom of the widget where it says “Widget logic”
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Is there a "is_subpage" alternative?yes 1153 is the page ID in that instance.
sorry, i’m not too sure what you are asking in that last question. you set your widgets up in each sidebar, and then you set the widget logic in that widget as per the screenshot
http://wordpress.org/extend/plugins/widget-logic/screenshots/
Forum: Plugins
In reply to: [Widget Logic] Widget Logic is_category displaying on homepageyep, you need to combine in_category with is_single, as in_category is true when the first or last (depending on the theme) post in the loop is in the specd category
It’s mentioned in passing in a couple of points in the FAQ
http://wordpress.org/extend/plugins/widget-logic/faq/
eg
is_category( array( 2, 3 ) ) || (is_single() && in_category( array( 2, 3 ) ) )
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Is there a "is_subpage" alternative?the next sample, adapted would work for DIRECT CHILDREN as opposed to all descendants.
global $post; return ($post->post_parent==”77″);