Excerpt settings interfering with WP Excerpts

Posted in: Newsmag
Post count: 19

My newsletter plugin uses the standard WP excerpt length. To change that length, they recommend the code below. It should work, but it doesn’t. Does the Newsmag theme somehow interfere with the WP Excerpt function. If so, could I plug in a function from the Newsmag theme? In other words, what is the name of the function that returns the length of say td_block_13?

Thanks, Richard


/* Change Excerpt length */
function custom_excerpt_length( $length ) {
return 25;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

Post count: 23312

Hello RichardU,

Unfortunately, the theme has not been tested with this type of plugin and we have no idea about the theme behavior with this type of untested plugin and also, we cannot say for sure if it will work or not with the theme, sorry! Please keep in mind that the theme has already implemented this feature through the Theme panel, in Excerpts section, like this -> https://www.screencast.com/t/0X2KSsfWcf For more information about this feature, please check our documentation here -> https://forum.tagdiv.com/newsmag-excerpts-introduction/ Please keep in mind that the get_excerpt() function is the main theme function which create this feature and which can be found here -> https://www.screencast.com/t/R4RwLtVeGDJe

Thanks for your understanding!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.