Show full post on Static Front Page
-
I am trying to display full post on my static home page.
<?php if ( presscore_get_config()->get( 'show_excerpts' ) ) { presscore_the_excerpt(); } ?> <?php if ( is_front_page() ) { global $more; // Declare global $more (before the loop). $more = 1; // Set (inside the loop) to display all content, including text below more. the_content(); } ?>
I am using the7.2 template and I’ve added this code to the …blog-post-content-part.php page
Which it sort of work, it doesn’t bother the blog post static page, I only wanted the full post to be seen on the front page. Is this coding right?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show full post on Static Front Page’ is closed to new replies.