alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Widget Logic] Missing LogicI don’t want anything to show up on the sidebar for any blog related pages/posts
If you mean what I think you are saying here, you could change your theme to not have a sidebar at all when on a page/post
http://codex.wordpress.org/Template_Hierarchy#Single_Post_display
Otherwise if you just want a single widget to vanish when on a page/post all you need is something like !is_single()
http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page
Forum: Fixing WordPress
In reply to: [Widget Logic] [Plugin: Widget Logic] need basic explainthe BP home widgets in that plugin appear to be their own beast – not generic WP widgets in wp sidebars at all, though I might be wrong. I’m not really up on BuddyPress.
In general WL lets you set which widgets in the sidebar in your WP admin > appearance > widgets appear (or not) on any given displayed page. Appearance is based on the value of some PHP code which can be as complex as needed, or as simple as, eg is_home() which WP returns as true when you display the home page.
buddy press I know adds its own conditional template tags:
http://wordpress.org/support/topic/buddypress-and-widget-logic
Forum: Fixing WordPress
In reply to: Widget Logic & TTF Titleshave you put the example widget_content filter code from
http://wordpress.org/extend/plugins/widget-logic/other_notes/
into your theme’s functions.php? (and activated the widget_content option)
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Conditional tags for Custom Post Typeshttp://codex.wordpress.org/Conditional_Tags#A_Post_Type
implies that things like
get_post_type() == ‘book’
should work fine
That’s WP core functionality, not something relocate upload specific – though it does make sure that other ‘proxy’ images generated from a main image are moved in tandem when you move the main image
Forum: Plugins
In reply to: Help With Podcast Channels – Parsing errorsNo idea on the second point. I’d need some specifics on the first one to help you
http://wordpress.org/extend/plugins/widget-logic/other_notes/
You want it so that the logic returns TRUE if A or B or C are true, so join them together with the logical ‘OR’ operator which is two bars:
A || B || C
Forum: Plugins
In reply to: [plugin] widget logic — get widgets to display on pages of a categorytake a look in the faq
http://wordpress.org/extend/plugins/widget-logic/faq/
that might have what you need
Forum: Plugins
In reply to: [Widget Logic] Can Widget Logic detect a user's browser, ie Iphone?No conditional tags, but google for php and user_agent string and you should find what you need
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] this is difficultIn this case it’s to avoid editing core WP code but give you the flexibility as if you were
Glad u r all sorted
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] this is difficultYou are right, WL isn’t for the faint of coding heart, and I’m not hiding that. There was a forum thread where I listed/linked to other plugins that do the same job but in a more point and click, fill in forms, sort of way. I think you should be able to find them anyway.
If you do want to persist though, there are some bare bones notes at
http://wordpress.org/extend/plugins/widget-logic/other_notes/
but it does expect quite a bit of a ‘coder background’ still.
Cheers
Alan
Forum: Plugins
In reply to: Managing a LOT of different widgets per page?Yeah, the way I would approach that would be to use something like the http://more-plugins.se/plugins/more-fields/ plugin (I assume it works as well with pages as posts) that lets you spec some metadata per post(/page) that you can then call – at the least with a basic PHP widget.
Forum: Plugins
In reply to: Managing a LOT of different widgets per page?only show a particular page’s widgets when editing
it’s a good idea, but it would be hard to build into the plugin because WL code is so generic – you’d have to come up with a a way of indicating all the different conditions.
another tack… could there be another way of simplifying your admin of all these widgets? sounds like you have lots of static pages, and individual widgets per page? if so, or something like that, there could be a better way of organizing them. give us an outline of the situation you have and I’ll have a think
Forum: Plugins
In reply to: how to find home page id for different language pagetry
is_home() && (ICL_LANGUAGE_CODE == ‘en’ )
for the home page in english
sorry, if that didn’t work it would probably take some effort to rewrite the functions that use wpdb->get_results which I *think* is the source of the problem.
You could test if that was true. Those functions are used by (what looks like) the themes built in recent comments, recent posts and most commented functions. if those are in widgets provided by the theme, try removing them and see if that fixes it