so apparently, the error disappear after i deactivate Quick Cache.
is there any way to fix my code so i can still use quick cache
for using pages as menu, add the following codes:
style.css:
ul#menu ul ul {display:none;}
ul#menu ul li:hover > ul {display:block;}
header.php: (inside ul id=”menu”)
<?php wp_nav_menu(); ?>