Forums

Add custom content after each excerpt in main loop (3 posts)

  1. billbennett
    Member
    Posted 1 year ago #

    I'm building a news website based on WordPress and my own child version of the Twentyten theme.

    I've modified loop.php so that each excerpt appears on the index page as just a clickable headline, an optional thumbnail and a paragraph of body copy - no metadata or utility stuff, it's really simple.

    I'd like to be able to add one, two or even more linked news items under some, but not all, of the excerpts.

    The BBC News website http://www.bbc.co.uk/news/ often does something similar.

    I guess I could store these links as custom fields with each post - but I've no idea how to then insert them into the loop.

  2. anjali.n
    Member
    Posted 1 year ago #

    hi,
    yes you can add the link directkt to excerpt ..

  3. billbennett
    Member
    Posted 1 year ago #

    Thanks. I found that works, but you have to write the link as raw HTML - which may confuse others working on my site.

    To get around this, I've installed the TinyMCE Excerpt plug-in, which makes it easier for non-geeks to add the links.

Topic Closed

This topic has been closed to new replies.

About this Topic