The built in php wordpress functions are not reading in my VScode and its really bugging me because it is showing yellow/orange swiggly lines.
<h2><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
<?php the_content();?>
<hr>
<?php }
get_footer();
?>
Word Press functions not registering in VScode
CodePudding user response:
I suggest to install a specific extension:
https://marketplace.visualstudio.com/items?itemName=johnbillion.vscode-wordpress-hooks
CodePudding user response:
I figured it out. It turns out I needed to open the PHP files in my root folder in order for the WordPress functions to be acknowledged by VScode.