scottsawyer
Forum Replies Created
-
Forum: Plugins
In reply to: [Better WordPress Minify] Use Options APINever mind, just read the docs: https://betterwp.net/wordpress-plugins/bwp-minify/#advanced_customization
Forum: Plugins
In reply to: [SVG Support] Elementor 500 error when viewing media libraryenkia, thank you, this was also the case for me. Only difference is:
sudo service php7.0-fpm restartif you are using Nginx + php7.0-fpm.
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Database Update 3.0.9I just wanted to let you know I was able to update the plugin. Not sure if it was something about server memory the first time ( should have checked ), but I didn’t need to deactivate anything.
I appreciate the swift response.
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] $instance dosn't retrieve saved data@masteryo, your code in https://www.ads-software.com/support/topic/instance-dosnt-retrieve-saved-data?replies=15#post-4655592 really helped me get close. Here is what I had to do to make this work for me.
public function form ( $instance ) { if ( empty( $instance ) ) { global $post; $all_instances = get_post_meta( $post->ID, 'panels_data', true); foreach( $all_instances['widgets'] as $i => $instances ) { if ( $this->panel_id == $i ){ $instance = $instances; } } } /* awesome code for my custom widget */ }
In my case, my widget has fields that are loaded dynamically are are used in both the sidebar ( which already works fine ) and in the panels pages, so I just needed a condition for when the $instance is not available to the form function.
I am so happy now, thanks everyone!
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] saving array failsI am having a similar issue, I suppose.
Have you attempted to print_r( $instance )? Even though my field values save, the $instance array is always set to default. I am pretty sure Page Builder uses it’s own mechanism for saving widget instance data. This is also a problem for me as I have several instances of the widget. Each time I edit the page, I must reset all of the instances.
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] jQuery not working ( no error ) in custom widgetOk, well, something new. If I add the widget, save the form ( though unconfigured ), update the page, edit the widget, all the js works. So, my problem seems to only occur when first adding the widget.
While I’d like to get this problem totally resolved, this will work for me at the moment. I’ve got two – three weeks before any clients will have to use this feature.
Please let me know if you have any great ideas.