php code inside html is being commented out -
my php code called html code in wordpress page. being commented out browser. code:
<?php if (function_exists (gcf)) gcf(); ?>
inside div being read following (when see in firebug or chrome)
<!--?php if (function_exists (gcf)) gcf(); ?-->
i searched net , found following similar questions, sadly there no apt solution, , nor has mentioned why happening. because of doctype???
question 1 question 2 question 3 question 4
thanks in advance.
it sounds me code inside file not have .php
extension , therefore code being evaluated html
.
if want use php
in wordpress, make sure it's in template file (either existing 1 or 1 you've made).
Comments
Post a Comment