Local Community

How to run PHP inside HTML file?

Hi, I am making a WP Plugin and I would like to run PHP inside an HTML file.

i.e.
<?php $term = get_term_by( ... ); echo $term->name; ?>

for getting a taxonomy name.

Is there a config I should make to Local Flywheel to accept running PHP?

1 Like