Support » Fixing WordPress » Change Full Posts to Excerpts

  • I am trying to change my posts so it will show excerpts instead of full posts. I found this code in loop single.php

    <div class="entry">
    					<?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?>
    	                                <?php the_content(__('» Read more..', 'themezee_lang')); ?>
    					<div class="clear"></div>
    					<?php wp_link_pages(); ?>

    [Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I changed the <?php the_content(__(‘» Read more..’, ‘themezee_lang’)); ?> to <?php the_excerpt(); ?> and it showed excerpts but when I clicked on the actual article only the excerpt showed, not the whole article. C

    Can anyone please help?e

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael


    Forum Moderator

    possible more likely in loop.php, or to what template part index.php might point.

    (most files with ‘single’ in the name are for single post views)

    single.php is a template for a 1 direct post in full size. It means – no the list of posts. So single.php has to have a content.

    Change the_content() for the_excerpt() in index.php and archive.php etc.

    Any archives files (list of posts – category’s posts, author’s posts) should change content to excerpt.

    Files which WP use to show archives are:

    category.php, author.php, archive.php, tags.php(? not sure), custom-name.php,

    Then if theme dont have these files for specified type of archive – it use index.php


    IF you use as a homepage a static page not a blog page.

    Then a standard blog page using home.php – there u can change a standard post list.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Full Posts to Excerpts’ is closed to new replies.