Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Benaceur

    (@benaceur)

    open this file:
    wp-content\plugins\news-ticker-benaceur\news-ticker-benaceur.php
    and replace this code:

    //[wp_news_ticker_benaceur_short_code]
    	function shortcode_ntb_func(){
    	  return wp_news_ticker_benaceur_();
        }
    	add_shortcode( 'wp_news_ticker_benaceur_short_code', 'shortcode_ntb_func' );
    //[wp_news_ticker_benaceur_short_code]

    with:

    //[wp_news_ticker_benaceur_short_code]
    	function shortcode_ntb_func($atts){
    		ob_start();
    		news_ticker_benaceur_post();
    		$content = ob_get_contents();
    		ob_end_clean();
    
    	    return $content;
        }
    	add_shortcode( 'wp_news_ticker_benaceur_short_code', 'shortcode_ntb_func' );
    //[wp_news_ticker_benaceur_short_code]
    Plugin Author Benaceur

    (@benaceur)

    The problem was solved, only update the plugin now

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘News ticker is displayed before the_content()’ is closed to new replies.