Changing length of the_content in Wordpress -


i'm building site client requires different lengths everything. the_excerpt tag being shortened 15 words, need the_content() shortened on main "updates" page, need work full form (unlimited) on actual post page.

how go doing this? know if there's way alter the_content output per page?

how create 'function' following

the_content("short") blogs landing page, the_content(); normal output works on single.php?

put following code theme functions.php

function custom_excerpt_length( $length ) {     return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); 

instead of 20 use desired excerpt length want


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -