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

mycdnprince

Commendable
Mar 5, 2021
64
1
1,535
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

Admirable
Jan 27, 2021
536
68
8,940
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

Commendable
Mar 5, 2021
64
1
1,535
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!