New answers tagged

2

Add this function in your theme's functions.php function my_enqueue($hook) { if ('post.php' != $hook ) { return; } wp_enqueue_script('my_custom_script', get_template_directory_uri() . '/js/myscript.js'); } add_action('admin_enqueue_scripts', 'my_enqueue');` In myscript.js place this code jQuery(document).ready(function(){ jQuery('#...


0

Your code is working exactly as it should. The style_formats filter allows you to add additional styles via class names. It is perfectly valid for an element to have multiple classes (and is not limited to only two). I've been working with the tinymce editor for years; and I can honestly say I have no idea what the "exact" argument does, exactly. I have ...


0

I wasn't able to directly add a repeating field (with let's say a + button) but I was able to create a 2 step process whereby the end-user can use a numeric field to set the number of repeatable areas on the next screen: Step 1 - Select Shortcode Step 2 - Shortcode Builder Step 1/2 Step 3 - Shortcode Builder Step 2/2 Step 4 - Shortcode Output into ...



Top 50 recent answers are included