Ashworth Creative
Forum Replies Created
-
The first option in Core Settings is a checkbox to handle shortcodes, and it’s not checked by default. That might fix your issue.
Forum: Fixing WordPress
In reply to: Is my site being constantly hacked?Remember to check your cron jobs as well. This script allows execution of arbitrary system commands; I’ve seen it in the wild and the attacker used it to set up a cron job to recreate the file periodically, making it impossible to really alter or delete it while the job was running.
Forum: Plugins
In reply to: [TinyMCE Templates] Template button for Custom Field EditorThe javascript also has a problem with plugins like ACF where the name of the TinyMCE content is acf_content rather than just content. You can alter the code around line 130 of tinymce-templates.js to:
var tm = tinyMCEPreInit.mceInit; var content_css = ''; for ( var i in tm ) { if ( tm[i].content_css ) { content_css = tm[i].content_css; break; } } var styles = content_css.replace(/(\s+)/g, "").split(',');This will find the appropriate content_css.
Forum: Plugins
In reply to: [TinyMCE Templates] Template button for Custom Field EditorFurther, the plugin is currently set up to only handle one WYSIWYG field per post. If you were using a custom fields plugin to have multiple instances of that (for example, tabbed content where you’d really want templates), you’d want this to work on all those. This can be accomplished by:
- Changing the
media_buttonsfunction in tinymce-templates.php so that the button does not have an id, but has two classes:button button-tinymce-templates - Modify line 11 in tinymce-templates.js to
$(document).on('click', '.button-tinymce-templates', function(e){
to make the the handler live. This way, if more WYSIWYG fields are created, the button will work on those as well.
Forum: Plugins
In reply to: [TinyMCE Templates] Template button for Custom Field EditorThe issue is in the call to the
media_buttonsaction hook (line 192 of tinymce-templates.php). Remove the “if” statement and it should work perfectly.Forum: Plugins
In reply to: [New Pages Last] Doesn't work anymoreThis plugin doesn’t affect the appearance menus at all, it just affects the post editor page, and only when you’re on a hierarchical post type with page attributes support.
Forum: Plugins
In reply to: [Date and Time Picker Field] Show calendar in the front-end@winwindoe: Have you tried enabling AJAX for the cart under WooCommerce->Settings->Products and deselecting the cart redirect option just above that?
Forum: Plugins
In reply to: [Date and Time Picker Field] Show calendar in the front-endWordPress comes with many scripts that can be enqueued on the front-end, including the jQuery UI Datepicker. You can enqueue the script and have a custom stylesheet for the datepicker.
Forum: Plugins
In reply to: [Date and Time Picker Field] Doesn't work properly in repeater fieldThe solution provided by Mihail Semjonov for flexible fields also works with repeaters. In acf-field-date-time-picker/js/timepicker.js you need to edit lines 31-32 to read:
acf.get_fields({ type : 'date_time_picker'}, $el).each(function() { var input = $(this).find( 'input.ps_timepicker' )Forum: Plugins
In reply to: [Post Type Switcher] Conflict with ACF ProSame issue here with ACF Pro 5.0.8, Post Type Switcher 1.3, and WP 4.0. All fields get saved as child groups of the main field group when saving.
@sherminator
That seems like a problem with the WooCommerce Waitlist plugin, you’d want to either contact the plugin developer or go through WooCommerce support to resolve that issue.Putting the following code in your theme’s functions.php file will show variable product attributes on product categories/tags and will allow you to add those products from those parts of the site. It will also allow the add_to_cart shortcode to work correctly with variable products.
if ( ! function_exists( 'woocommerce_template_loop_add_to_cart' ) ) { function woocommerce_template_loop_add_to_cart() { global $product; if ($product->product_type == "variable" && (is_product() || is_product_category() || is_product_tag())) { woocommerce_variable_add_to_cart(); } else { woocommerce_get_template( 'loop/add-to-cart.php' ); } } }I was experiencing this issue with ai1ec v1.10. I solved it by changing line 544 of app/controller/class-ai1ec-app-controller.php from “
$content . $this->page_content .” to just “$content”If you change line 420 of index.php to remove the ending comma, it actually displays in IE7. Still trying to find why the player isn’t setting up in IE7 and IE8.
- Changing the