I am trying to include a PHP file when a specific string is found in my content.
I retrieve my page content from my database for that page, then look for $content specific strings
$content = str_replace( "contact_form_here", "include_once('include_contact_form.php');", $content);
$content = str_replace( "google_map_here", "include_once('include_display_google_map.php')", $content);
<?php echo $content; ?>
But when I echo the content to the page it just print the following output
Is there a way I can include above within an echo statement?
Thanks in advance.