PHP Question (Setting Excerpt Length)
-
Hi there –
I see that I can set the default excerpt length in functions.php with a little fancy PHP code.
How can I set the length for a particular template? ie – I have one particular page that shows a bunch of post excerpts – I want to set the excerpt length to something different, but only for that page. Right now I just have this code:
<?php the_excerpt(); ?>What can I add there to make it “50 words” ….
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Question (Setting Excerpt Length)’ is closed to new replies.