jquery-issue: cannot load the basic jquery

A plugin or your theme is probably calling wp_enqueue_media() and instead of adding a check for admin page and early return they are allowing the scripts to load on every admin page. You need to deactivate all the plugins and switch to the default theme. If this solves your issue then activate your plugins one … Read more

jquery not working correctly in plugin options page?

If your script is loading in the head of your admin page I would recommend wrapping your code in a document ready function // wait till the entire dom is available before executing JS // notice the $ this brings the $ into private scope if you wish to use it jQuery(document).ready(function($){ // put your … Read more

Add php function into .js file (for tinyMCE button)

To ajax this function you have hook it, so your function will be like this : function write_cat_list($cat){ $cats = get_categories(‘hide_empty=0’); if($cats) : $tinyMCE_list = array(); foreach ($cats as $cat) : $tinyMCE_list[] = array( ‘text’ => $cat->name , ‘value’ => $cat->term_id ); //write_cat_list($cat->term_id); endforeach; $jscode = json_encode($tinyMCE_list); //to convert from array to opject echo $jscode; … Read more