Homepage Previews
-
Hello,
I have build a website with Serene that only links to five posts. Each single post has been formatted but the homepage that shows a preview of all six posts completely ignores the formatting and cuts off the text with a link (“read more”) at a random point.
I am new to WordPress and don’t know PHP. I would like to either find a way of formatting the previews too or set my first post as a homepage and have that page showing previews of all posts never show up.
This is what the index.php looks like:
<?php /** * @package Serene * @since Serene 1.0 */ get_header(); if ( have_posts() ) : ?> <div id="main-content"> <?php while ( have_posts() ) : the_post(); get_template_part( 'content', get_post_format() ); endwhile; ?> </div> <!-- #main-content --> <?php get_template_part( 'includes/navigation', 'index' ); else: get_template_part( 'includes/no-results', 'index' ); endif; get_footer(); ?>I understand that I can delete the middle part. What do I insert instead of xyz to show a specific post? Help much apprechiated!
<?php /** * @package Serene * @since Serene 1.0 */ get_header(); xyz get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Homepage Previews’ is closed to new replies.
