R on "[Plugin: Timeline Express] Excerpt length does not appear to be working in 1.2.1"

ساخت وبلاگ

The Excerpt length setting does not appear to be working 1.2.1 (std version). I can insert code similar to this in functions.php

// change excerpt length for timeline express posts
function set_custom_excerpt_length( $length ) { if ( get_post_type() == 'te_announcements' ) retu 15; else retu ( $length );
}
add_filter( 'excerpt_length', 'gwfa_custom_excerpt_length', 999 );

This works okay, but it would seem like the value should be pulled from the settings page though. (I skimmed the plugin code but did not find that in my quick search.)

Thought you should know.

https://wordpress.org/plugins/timeline-express/

Typo corrected:
add_filter( 'excerpt_length', 'set_custom_excerpt_length', 999 );

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

برچسب : نویسنده : استخدام کار wpss بازدید : 52 تاريخ : سه شنبه 21 ارديبهشت 1395 ساعت: 8:14