Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author JoomUnited

    (@joomunited)

    Hi,

    Usually from this box, you can select the news block. It looks like a conflict with another plugin. You may try to disable plugins one by one and check errors.

    Cheers,

    Thread Starter AnalystCave

    (@analystcave)

    Hi

    I tried disabling all other Plugins but that did not help. I am running a standard WordPress 4.3 with theme TwentyFourteen.

    The JS exception is raised on the last line of the below. It happens only when I select an item from the screen I shared above:

    (function($){
    		      $('#wpcufpn_widgetlist').on( 'change', function(e){
    		       //console.log( 'selected e: ' + $('option:selected', this).val() );	//Debug
    		            	//console.log( e );													//Debug
    		            	insertShortcode( $('option:selected', this).val(), $('option:selected', this).text() );
    		            	$('#wpcufpn_widgetlist').find('option:first').attr('selected', 'selected');
    		            	tb_remove();
    		            });
    				    function insertShortcode( widget_id, widget_title ) {
    				    	var shortcode = '[frontpage_news';
    				    	if( null != widget_id )
    				    		shortcode += ' widget="' + widget_id + '"';
    				    	if( null != widget_title )
    				    		shortcode += ' name="' + widget_title + '"';
    				    	shortcode += ']';
    
    				    	/** Inserts the shortcode into the active editor and reloads display **/
    				    	var ed = tinyMCE.activeEditor;
    						ed.execCommand('mceInsertContent', 0, shortcode);

    Thread Starter AnalystCave

    (@analystcave)

    One additional comment: I managed to add the shortcode manually like so:
    [frontpage_news widget="2514" name="2514"]

    Although this does not solve the issue with the button now working above.

    Plugin Author JoomUnited

    (@joomunited)

    Hi,

    Could you update your version and make a new test?

    Cheers,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't add Latest News’ is closed to new replies.