• I have to change in the code and i have no idea. I tried to change the value 50 to more but does’nt seem to change anything. Here is the code

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 9 replies - 1 through 9 (of 9 total)
  • As it seems that you aren’t that used to code, I would suggest you use a plugin which does most of the work for you: https://www.ads-software.com/extend/plugins/advanced-excerpt/

    Thread Starter oberheimer

    (@oberheimer)

    I have tried that but nothing happens i even changed to full post but i only see the 50 excerpt

    You need to edit the All Posts template to call for the content not the excerpts. The default excerpt length is 55 words I believe.

    Thread Starter oberheimer

    (@oberheimer)

    But how do i change the all posts template i’m not good at coding :p
    Lets say i want full posts or 200 words…

    try:
    add this code to theme’s function.php

    add_filter( 'excerpt_length', 'td_excerptLength' );
    function td_excerptLength( $length ) { return 100; }

    change your excerpt code

    <div class="excerpt"><?php the_excerpt(); ?></div>

    Thread Starter oberheimer

    (@oberheimer)

    I have tried that but did’nt work. I use a templatemonster so…
    I wont do that again… too complicated and they try to define everything so even when you try and change a simple thing it makes it difficult

    Thread Starter oberheimer

    (@oberheimer)

    No flexibility at all imo

    I’ve used the code described by timDesain many times and it has always worked for me. I can only assume you did not add it correctly, you added it to the wrong file or your theme has its own custom excerpt function.

    Thread Starter oberheimer

    (@oberheimer)

    esmi thanks, i guess i did’nt add it correctly then i will try again ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘how do i change Excerpt Length for posts’ is closed to new replies.