WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Show entire post not excerpt or "show more"

[Resolved] Show entire post not excerpt or "show more"

  • This is my blog http://www.bluemountainbelle.com

    I would like the post to show all of the content not just some. I have tried changing the_excerpt to the_content in index.php

    <div class="post-wrap">
          <?php the_post_thumbnail('following-post-thumbnails'); ?>
    	  <?php the_excerpt(__('keep reading', 'grisaille')); ?></div>
          <?php wp_link_pages(

    to

    <div class="post-wrap">
          <?php the_post_thumbnail('following-post-thumbnails'); ?>
    	 <?php the_content();?>
          <?php wp_link_pages(

    Which did nothing.

    Also in Template.php I have this code, if i take it all out i just get some of the post then […]

    /**
    * Change Excerpt length
    **/
    function grisaille_new_excerpt_length($length) {
    	return 20;
    }
    add_filter('excerpt_length', 'grisaille_new_excerpt_length');
    
    /**
    * Change excerpt [...] to something else
    **/
    
    function grisaille_new_excerpt_more($more) {
        global $post;
    	return ' ... <br /><a class="more-link" href="'. get_permalink($post->ID) . __('">keep reading</a>', 'grisaille');
    }
    add_filter('excerpt_more', 'grisaille_new_excerpt_more');

    I have tried changing the “return 20” to return 600 or a higher number which then shows all of my post but with no formatting.

    I assume I need to changes something to this but have no clue what.

    So my goal is to show the entire post and show the correct formatting (paragraphs/bold/header etc)

    Thank you!!

Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Resolved] Show entire post not excerpt or "show more"’ is closed to new replies.