-
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
-
HB-Themes support team typically replies to all topics within 48 hours except on weekends and public holidays. You must register to post topics.
Forum Categories
- Highend WP Theme 25,505
- Aegaeus WP Theme 1,616
- Requests and Feedback 133