Benaceur on "[Plugin: news ticker benaceur] News ticker is displayed before the_content()"

ساخت وبلاگ

On the lastest WP the shortcode content is displayer before the content of post:

I have iserted with this order:

post text
....
[wp_news_ticker_benaceur_short_code]
....
post text

output is:

[wp_news_ticker_benaceur_short_code]
post text
....
....
post text

https://wordpress.org/plugins/news-ticker-benaceur/

Benaceur
Member
Plugin Author

Posted 1 week ago #

open this file:
wp-contentpluginsnews-ticker-benaceuews-ticker-benaceur.php
and replace this code:

//[wp_news_ticker_benaceur_short_code] function shortcode_ntb_func(){ retu 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(); retu $content; } add_shortcode( 'wp_news_ticker_benaceur_short_code', 'shortcode_ntb_func' );
//[wp_news_ticker_benaceur_short_code]

Benaceur
Member
Plugin Author

Posted 15 minutes ago #

The problem was solved, only update the plugin now

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 190 تاريخ : يکشنبه 9 خرداد 1395 ساعت: 7:01