WordPress.org

Ready to get started?Download WordPress

Forums

Twentyten (as CMS) how to the_excerpt blog main page ? (7 posts)

  1. mpesgt01
    Member
    Posted 3 years ago #

    I use twentyten theme in other wordpress installs
    they both work good with the_excerpt main page...

    but on my other site I have setted up my wordpress as a CMS (custom homepage, many pages, one button goes to main blog page showing all articles...)
    On that site I just can't make my main blog page show only Excerpt and so not all the content... how to ??

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Create a child theme of Twenty Ten and add an loop-index.php template file that uses <?php the excerpt();?> instead of <?php the_content();?>

  3. mpesgt01
    Member
    Posted 3 years ago #

    Thansk for that quick answer
    I just started to use child theme 2 weeks ago... (Super!) But that site in CMS style has no child and many modifications to it so I would prefer a no-child way for this one :-)

  4. mpesgt01
    Member
    Posted 3 years ago #

    ho... btw, I just checked and mysite.com/category/catname DOES get the_excerpt working well !!
    but as said, mysite.com/blog doesnt
    weird !!

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    I would prefer a no-child way for this one

    Then add a loop-index.php file to your main theme. But be warned that your customisations will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

  6. mpesgt01
    Member
    Posted 3 years ago #

    i would prefer no to for this one... ((please take note that all the other wordpress theme will have childs from no on, count on me, i love child theme now that I know them more...)) but is there a way non-child for this one timer ?? Just this one, i promise no to "not use child" again after.

    Because I dont see how WP will do better having my loop.php custom, versus hading a child with loop-index.php custom... at the end it shoud be the same result, no ?

    So if my loop.php doest make my modification... how can this child whould do it better than ?

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    I did answer this above...

Topic Closed

This topic has been closed to new replies.

About this Topic