I’m encountering a problem with displaying a title on my front-page.php template file. I’ve got this as code:
<?php if( have_posts()) : ?> <?php while( have_posts() ): ?> <div class="bottom-border bottom-padding article-paragraph"> <h2><?php single_post_title('',true) ?></h2> <?php the_post() ?> <?php the_excerpt() ?> <p><span class="red-link"><?php the_time('l d-m-Y') ?></span> by <span class="red-link"><?php the_author() ?></span></p> </div><!-- // margin-top --> <?php endwhile; ?> <?php endif; ?>
I know that you all WP experts will find where I went wrong
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.