Forum Replies Created

Viewing 5 replies - 46 through 50 (of 50 total)
  • Thread Starter mschouten

    (@mschouten)

    This is a really nice plugin, i can see it’s potential!
    but I am sorry, i really can’t get it to work…

    Thread Starter mschouten

    (@mschouten)

    Thank you for your quick reply!!

    I added the following to functions.php:

    /**
    	 * Register a UI for the Shortcode.
    	 * Pass the shortcode tag (string)
    	 * and an array or args.
    	 */
    	shortcode_ui_register_for_shortcode(
    		'shortcake_dev',
    		array(
    
    			// Display label. String. Required.
    			'label' => 'Shortcake Dev',
    
    			// Icon/attachment for shortcode. Optional. src or dashicons-$icon. Defaults to carrot.
    			'listItemImage' => 'dashicons-editor-quote',
    
    			'inner_content' => array(
    				'label' => 'Quote',
    			),
    
    			'post_type'     => array( 'post' ),
    
    			// Available shortcode attributes and default values. Required. Array.
    			// Attribute model expects 'attr', 'type' and 'label'
    			// Supported field types: text, checkbox, textarea, radio, select, email, url, number, and date.
    			'attrs' => array(
    
    				array(
    					'label' => 'Attachment',
    					'attr'  => 'attachment',
    					'type'  => 'attachment',
    					'libraryType' => array( 'image' ),
    					'addButton'   => 'Select Image',
    					'frameTitle'  => 'Select Image',
    				),
    
    				array(
    					'label' => 'Cite',
    					'attr'  => 'source',
    					'type'  => 'text',
    					'meta' => array(
    						'placeholder' => 'Test placeholder',
    						'data-test'    => 1,
    					),
    				),
    
    				array(
    					'label'    => 'Select Page',
    					'attr'     => 'page',
    					'type'     => 'post_select',
    					'query'    => array( 'post_type' => 'page' ),
    					'multiple' => true,
    				),
    
    			),
    
    		)
    	);
    /**
    	 * Register a UI for the Shortcode.
    	 * Pass the shortcode tag (string)
    	 * and an array or args.
    	 */
    	shortcode_ui_register_for_shortcode(
    		'shortcake_dev',
    		array(
    
    			// Display label. String. Required.
    			'label' => 'Shortcake Dev',
    
    			// Icon/attachment for shortcode. Optional. src or dashicons-$icon. Defaults to carrot.
    			'listItemImage' => 'dashicons-editor-quote',
    
    			'inner_content' => array(
    				'label' => 'Quote',
    			),
    
    			'post_type'     => array( 'post' ),
    
    			// Available shortcode attributes and default values. Required. Array.
    			// Attribute model expects 'attr', 'type' and 'label'
    			// Supported field types: text, checkbox, textarea, radio, select, email, url, number, and date.
    			'attrs' => array(
    
    				array(
    					'label' => 'Attachment',
    					'attr'  => 'attachment',
    					'type'  => 'attachment',
    					'libraryType' => array( 'image' ),
    					'addButton'   => 'Select Image',
    					'frameTitle'  => 'Select Image',
    				),
    
    				array(
    					'label' => 'Cite',
    					'attr'  => 'source',
    					'type'  => 'text',
    					'meta' => array(
    						'placeholder' => 'Test placeholder',
    						'data-test'    => 1,
    					),
    				),
    
    				array(
    					'label'    => 'Select Page',
    					'attr'     => 'page',
    					'type'     => 'post_select',
    					'query'    => array( 'post_type' => 'page' ),
    					'multiple' => true,
    				),
    
    			),
    
    		)
    	);

    Can you help me further?
    I am a web designer / web developer, not that technical..

    I found out that i had a setting
    Bootstrap JS File
    And it was set to: Use from theme or any other plugin

    I have changed setting to: Use from EBS Plugin

    And it got me to work, so it was a theme issue!

    I notices an error in my debugger console:

    TypeError: $ is not a function
    $(document).ready(function(){$(“.jumbotron”).fitVids()});

    But i think it is something from my wp theme..

    jonwarmington, it is not fixed in latest version.
    Can i use your custom shortcode?

    I have removed this break, but still can get tabs to work.
    When i click on another tab, it doesn’t change.

    Working on latest WP 4.2.4 and Latest plugin version 4.4.4
    Is plugin version updated soon?

Viewing 5 replies - 46 through 50 (of 50 total)