Piemol
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Custom Widget area] Update destroyed my Page!Hello I’m running version 1.2.5 and also got this error:
Warning: Invalid argument supplied for foreach() in /xxxxx/wp-content/plugins/wp-custom-widget-area/admin/class-wp-custom-widget-area-admin.php on line 332But I fixed the php warning myself.
I don’t know the cause of the warning. Why isn’t there an array with data to work with? Is that cause by some update of WordPress itself or is it just normal?
Maybe the author can verify this.I added the following in this file:
/wp-content/plugins/wp-custom-widget-area/admin/class-wp-custom-widget-area-admin.phpWhen trying it yourself, back it up FIRST before continuing ! ! !
Go to line 332, and add before this line:
foreach ($cwa_widget_wrappers as $wrapper) {
The following line:
if($cwa_widget_wrappers && is_array($cwa_widget_wrappers)){Then go to line 358, which should only contain the closing accolade of the foreach:
}
And add a new line with another closing accolade:
}Now line 332 starts with:
if($cwa_widget_wrappers ...
Line 333 starts with:
foreach ($cwa_widget_wrappers ...
And line 358, 359 and 360 all contain just a closing tag.Then save the file and refresh your website.
- This reply was modified 9 years, 3 months ago by Piemol.
Forum: Plugins
In reply to: [Slideshow] Option for VerticalHey Stefan,
Thanks for your response.
I thought ‘presenting the option’ just could be a radio or select button?
‘horizontal’ or ‘vertical’.
With a question:
“how must the slides within a slide be positioned?”
or
“how must the slideshow be displayed?”
or something like that.And by the maximum width and height of the slideshow a bit more explaination:
“Maximum width. When maximum width is 0 and slideshow is displayed horizontal, maximum width is ignored”
“Maximum height. When maximum height is 0 and slideshow is displayed vertical, maximum width is ignored”Sorry if I’m wrong, I don’t know anything at all off writing plugins or developing for WordPress (yet)!
I will keep an eye out for new versions of this plugin !