jbowyers
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Custom RedirectGreat. Thanks, found it.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Custom RedirectThanks, but I am referring to a custom URL not a predefined link to a page or post
Forum: Plugins
In reply to: [Simple Mail Address Encoder] Revisiting wp_enqueue_script errorYes, please add it to the repository. It is still causing issues in current version of WordPress.
Forum: Hacks
In reply to: Passing Multidimensional arrays and Associative arrays to plugin shortcodesYes, nothing seems ideal but the json_encode solution you suggested seems like the best of the simple solutions. Thanks
Forum: Hacks
In reply to: Passing Multidimensional arrays and Associative arrays to plugin shortcodesYes, I was thinking something like how the Contact Form 7 plugin admin works. Where you have an admin panel for entering config info and then use an automatically generated id in the shortcode.
I was hoping to keep it as simple as possible, ie. not have to store stuff in the db or create an admin panel.
Forum: Hacks
In reply to: Passing Multidimensional arrays and Associative arrays to plugin shortcodesHow would WP editors enter the configuration information?
Forum: Hacks
In reply to: Passing Multidimensional arrays and Associative arrays to plugin shortcodesNo, the configuration info is unique to each instance of use. The jQuery plugin has built in defaults. I have more than one plugin that requires this type of data. One plugin is for creating charts, so the shortcode approach allows for more than one chart within a post/page as well as applying the chart to a specific point in the post. The problem with custom fields in posts is they are specific to the post and not different instances of a plugin.
Forum: Hacks
In reply to: Passing Multidimensional arrays and Associative arrays to plugin shortcodesYes, I am using wp_localize_script in the plugin to pass data to the jQuery plugin. The problem is providing a way for an editor to enter the configuration info from within the admin panel.
Forum: Hacks
In reply to: Passing Multidimensional arrays and Associative arrays to plugin shortcodesThanks Rastislav. This looks better than what I have. The data does not necessarily have to be passed from the shortcode to the WP plugin as an associative array but ultimately a multidimensional associative array needs to be passed from the WP plugin to a jQuery plugin. The jQuery plugin requires the associative array as configuration info.
I am wondering if there is a better way to pass this type of data. Shortcodes seem ill equipped to handle this. Perhaps a simple admin form that has a field that allows for the entry of JSON or the like.