Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP CODE wierdness
#1
Why does my php code continue to be converted into a comment? I've installed DynPages and other times the code seems to work but mostly not.

In other words, when I type in this:

<?php get_i18n_navigation(return_page_slug(), minlevel, maxlevel, show); ?>

...it ends up like this:

<!--?php get_i18n_navigation(return_page_slug(), minlevel, maxlevel, show); ?-->

Any help would be appreciated.

-Don

(2013-01-26, 06:39:18)lakechicago Wrote: Why does my php code continue to be converted into a comment? I've installed DynPages and other times the code seems to work but mostly not.

In other words, when I type in this:

<?php get_i18n_navigation(return_page_slug(), minlevel, maxlevel, show); ?>

...it ends up like this:

<!--?php get_i18n_navigation(return_page_slug(), minlevel, maxlevel, show); ?-->

Any help would be appreciated.

-Don

OOOps. I answered my own question. The code is supposed to go in the template, not on the page.
Reply


Messages In This Thread
PHP CODE wierdness - by lakechicago - 2013-01-26, 06:39:18
RE: PHP CODE wierdness - by shawn_a - 2013-01-26, 10:08:50
RE: PHP CODE wierdness - by PauliOpa - 2015-04-20, 20:02:12



Users browsing this thread: 1 Guest(s)