I probably have an easy issue here: I'm new to php and WordPress template development: in my php I get error 'Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)'
I basically created a page and added content there and want to display dynamically on my home page.
Code below:
<?php
/**
template name: Home Page
*/
get_header(); ?>
<!--HERO-->
<section id="hero">
<article>
<div class="container-fluid clearfix">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="col-lg-3" "hero-text">
<p class="lead newfont"><?php the_content(); ?></p>
</div><!--col-->
<?php endwhile; ?>
</div><!--container-->
</article><!--article-->
</section><!--HERO-->
<?php
get_footer();
The error is somewhere in the the_content(); if statement. But not sure whats wrong tried going over the documentation: https://developer.wordpress.org/reference/functions/the_content/
Any tip is appreciated as I'm new to this.
element instead of adding content as it where it is in the code.
– Zygimantas Feb 19 '17 at 20:44