Please I not sure how anyone will evaluate my question has useful for others or not, but I only asking here after reading the manuals, others question and yet I could not find my error.

So this is my code without my modification:

/* Start the Loop */
while ( have_posts() ) : the_post();

Then after that line I need to call some “the_field” functions from Advanced Custom Fields Plugin.

So I put in my code this:

<h1 class="data"><?php  the_field('data_de_postagem'); ?></h1>

I put this in the right place, if I just put the ?php the_field(‘data_de_postagem’); ?> everything works fine. But since I need some style in it I creating a h1class=”data” to style later.

This is the error I getting in browser:

Parse error: syntax error, unexpected ‘<' in C:UsersAlexandreDocumentsWebsiteswww.horus.devwp-contentthemestwentyseventeensingle-shipment.php on line 27

Thank you so much for your help.

Read more here: Calling a function in wordpress creating a class that can be stylized in CSS


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: