Showing Full Blog Content

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    Matt
    September 25, 2014 at 4:26 pm #12579

    Hi,
    I’m trying to create a home page for a blog that shows the full content of each blog post rather than an excerpt. I edited post-description.php for the classic blog template and replaced

    <?php 
    if ( has_excerpt() ) echo get_the_excerpt();
    else
    {
    	echo wp_trim_words ( strip_shortcodes ( get_the_content() ) , hb_options('hb_blog_excerpt_length') , '...' );
    }
    ?>

    with
    <?php the_content(); ?>

    This shows the full content instead of an excerpt, but ends up creating an infinite loop of the only blog post I have on the site (and usually crashing Chrome). It repeats the sidebar too, so the whole page seems to be repeating on a loop.

    The strange thing is, if I set the Reading Setting “Front Page Displays:” at “Your Latest Posts” it will pick up the above change and display the full post. This isn’t usable, however, as I can’t edit the page, set a featured image, etc.

    Thanks,
    Matt

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.