Javascript and php
-
Hi,
I am currently designing a new Theme using ZimpleZa as my base.
I am planning to design a Desktop-like Theme with a Background and every WordPress- Content (Header, Index, Footer,…) in one or multiple Javascript- Popup boxes.
I managed to put the Header and Footer in 2 different Popup boxes aleady. But I am currently having some Problems with the sidebar (didn’t try index and comments yet). Somehow the following code does not only give me no results, it crashed my whole javascript Code:
<script language="javascript"> <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?> </script>
I think the reason is because the output is some kind of Array?
The “single- string-” WordPress functions like “bloginfo(‘name’);” work just fine …BTW: I am using the Popup-Box Javascript from Scriptasylum
BTW2: I tried to google and search in the forums, but couldn’t find anything yet …
- The topic ‘Javascript and php’ is closed to new replies.