alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] page copy shortcode?not with widget logic – there might be another plugin that’s designed to do this though, as it seems like it might be relatively easy to do, and something that other people would be interested in.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] After updated,. widget broken,.hang on, is_post_author isn’t a core wordpress condtional tag. you can make one using
http://codex.wordpress.org/Function_Reference/get_the_author
eg is_single() && (“X”==get_the_author())
might work
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] After updated,. widget broken,.hard to say. does it work if you simply use ‘false’ or ‘true’. How about in the default theme?
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area requestI just updated the dev again, with a fix for import/export of settings function which includes the ability to cope with multi-line logic
Forum: Plugins
In reply to: Widget Logic – nothing happening with themefirst try it without any logic (or without the widget logic plugin active if you like) and check that the widget appears at all.
if it does, then adding/reactivating widget logic should only show it under the circumstances you are specifying (on the page with the URL slug ‘on-tap’ in the example you gave).
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area request🙂 no worries. What I have to do now is cater for multi-line logic. Now that it’s a textarea you can have returns in the code so the export format needs tweaking…
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area requestat the bottom of the widgets admin page should be an ‘Export All’ button followed by a load file button and ‘import All’ button.
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Larger input area requestThe ‘development’ 0.52 version has the textarea change AND a full import/export functionality trial (under the usual widget logic options on the main widget admin page)
thanks for the prompt feedback – i marked this as resolved.
I’ve committed that into (‘stable’) version 0.51 which is now live too
OMG, no i have done an amazingly foolish thing and got an entire command wrong
if ($widget_area=='wp_inactive_widgets' || empty($widget_list)) next;should be
if ($widget_area=='wp_inactive_widgets' || empty($widget_list)) continue;amazingly dense, sorry. i’m pretty sure that will fix it
no it’s not empty arrays. it’s that mysterious last WIDGET LIST= where it doesn’t then say array – I can’t seem to engineer that in my wp instances.
i guess i could just code to explicitly check it IS an array with at least one key/value…
(actually i wonder if i can quickly set up an empty sidebar on a test wp install i have…)
GAH! and thanks so much for working with me on this.
ok would you mind reinstating the troubleshooting line, but with a small change to add [END] like this:
echo "<pre>WIDGET LIST=";print_r($widget_list); echo "[END]</pre>";and again let me know what pops up before any errors
wonderful thank you. it’s always an obvious possibility after the fact. if you are up to it, you can get rid of that extra troubleshooting line, but before it is a line that reads
if ($widget_area=='wp_inactive_widgets') next;try changing that to
if ($widget_area=='wp_inactive_widgets' || empty($widget_list)) next;