• Resolved lsjohnson2

    (@lsjohnson2)


    I seem to be unable to adjust the excerpt length. It is stuck at 20 words. I have adjusted the timeline-express settings page to reflect a much higher character count and unchecked “random length”.

    I have even implemented the following code to my functions.php to try to overide WordPress’s default excerpt length:

    function custom_excerpt_length( $length ) {
    return 100;
    }
    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

    Nothing seems to work, what am I missing? How do I increase the excerpt length to more than 20 words?

    Thanks,
    Logan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Code Parrots

    (@codeparrots)

    Hi there @lsjohnson2,

    Generally when you are unable to alter the excerpt it means that your theme is already defining a custom excerpt length which is being inherited by Timeline Express.

    Can you try and locate inside of your themes functions.php file, or in your themes options/settings page if there is a location to alter the themes excerpt length.

    If it is in functions.php you’ll see another function already defined and hooking into ‘excerpt_length’.

    Laura_Carr

    (@laura_carr)

    Hi Code Parrots,

    I’m also having this issue – and can’t see a reference to excerpt length in the templates functions file. I actually don’t really want the text to be limited at all, is there anything I can do in the template files to just output the text, rather than an exceprt of it? Anyway to make a change that will not be effected by updates?

    Thanks
    Laura

    Plugin Contributor Code Parrots

    (@codeparrots)

    Hi Laura,

    This issue seems to be something to do with the theme itself.

    The theme actually has an excerpt length set, which is over riding the timeline express excerpt setting.

    You’ll have to adjust your theme to also adjust the excerpt of the timeline announcements, or you can customize your theme so that the timeline has a different excerpt than the standard posts.

    Thanks!

    wendy

    (@aprilfranco)

    There’s a super-easy workaround to this. I installed the ‘Timeline Express – HTML Excerpts’ plug-in and used the alternative text box which has no limit.

    It’s just a pity that I can’t use more than one timeline without going pro (I’d hoped to use a super-short version without the ‘red more’ option on a home page, then the extended version on a separate page).

    • This reply was modified 7 years, 8 months ago by wendy.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adjusting Excerpt Length’ is closed to new replies.