posts are not displayed
-
Hello, my posts on homepage are not being displayed, it only displays one post, I am so confused, I have more than one post on my website, I can’t figure out the reason why it displays only one post.
<div class="container"> <!-- container start --> <div class="row overflow-hidden"> <!-- row start --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); // display post content endwhile; else : // no posts found endif; ?> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 col-xl-3"> <!-- columns start --> <a href="<?php the_permalink(); ?>"> <div class="title-box mx-auto mb-0"> <h1 class="title-color"> <?php $title = get_the_title(); if ($title): echo the_title(); else: echo "No Title"; endif; ?> </h1> <?php if( has_post_thumbnail() ): the_post_thumbnail('full', [ 'title' => 'Feature image', 'class' => 'img-fluid']); else: ?> <img class="img-fluid" src="<?php echo get_template_directory_uri() . "/images/bg.jpg"; ?>"> <?php endif; ?> </div> </a> </div> </div> </div>
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘posts are not displayed’ is closed to new replies.