Question syntax error, unexpected '<', expecting end of file

mycdnprince

Prominent
Mar 5, 2021
62
1
535
0
syntax error, unexpected '<', expecting end of file

I get the above error message when posting to my functions.php in my wp theme.

/**
* Use the following code in your theme template files to display breadcrumbs:
*/
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

Anybody know what the problem is here? Thanks.
 

Cj-tech

Notable
Jan 27, 2021
379
50
890
29
syntax error, unexpected '<', expecting end of file

I get the above error message when posting to my functions.php in my wp theme.

/**
* Use the following code in your theme template files to display breadcrumbs:
*/
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

Anybody know what the problem is here? Thanks.
Unfortunately, I am just learning the basics of PHP currently in some of my classes (I am an IT intern/student). I do not have enough experience to troubleshoot it yet. I'd suggest you ask your question on a PHP specific forum if no one else on here can assist you. These forums (especially the Windows 10 sub-forum) aren't necessarily for coding.

Stack Overflow is a great resource for getting help with code though.
 

mycdnprince

Prominent
Mar 5, 2021
62
1
535
0
Thanks for the reply. I was wondering why I wasn't hearing anything back as my experience is Tom's Hardware is an excellent resource. Will follow up on your suggestions. Thanks!
 

ASK THE COMMUNITY