Hi,
I realize it is a little bit late to react but i think i had the same problem and it took me some time to solve it.
WordPress seems to require that the various admin pages are located in separate files. In order to keep a single file I had to make WordPress think i’m using several files by adding a get parameter to the file.
like this,
add_submenu_page(__FILE__, 'Categories', 'Categories', 9, __FILE__ . '?option=one', array(&$pc_plugin, 'AdminCategories'));
Hope this is still helpfull to someone.
Kind regards,
Richard
I too had a problem with the $ notation.
I found something that seems to fix this
<script type="text/javascript">
jQuery.noConflict();
</script>
This seems to check which library should use $ for compatibility with other
frameworks. But if it doesn’t find any conflicts it reverts to jQuery. You will
then be able to use both jQuery and $ notation in your code.
Hope this works for you too, just make sure you call it before the code that
uses $.