• I’m looking for a way to give each post on the main page a short ‘teaser’ intro which doesn’t appear on the individual post page (rather than replicate the story’s first par on both pages).

    Apparently the trick is to replace ‘the_content()’ with ‘the_excerpt()’, but in exactly which file do I find that ‘the_content()’ string in order to make this change appear on the main page only?

Viewing 3 replies - 1 through 3 (of 3 total)
  • try to put in index.php on line no.14 :-).
    bcoz index.php is main page. while single.php is detail page.

    Thread Starter djsflynn

    (@djsflynn)

    Ah, will do – many thanks for your patience with a total code novice!

    Thread Starter djsflynn

    (@djsflynn)

    Alas, that didn’t work – I’m using the Giraffe 2 template (from Urban Giraffe, http://www.urbangiraffe.com), but despite finding the only instance in the index.php file of ‘the_content()’ and replacing it with ‘the_excerpt(), nothing entered into the excerpt box appears on the front page – it shows only whatever is in the story box itself… :<

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Replacing ‘the_content()’ with ‘the_excerpt()’’ is closed to new replies.