TinyMCE buttons broken
Solved: It appears chrome had a corrupt cache as I attempted to visit the backend on Firefox and noticed that the issue wasn’t there. I had to delete all Chrome browsing data (cache alone wouldn’t do it).
Solved: It appears chrome had a corrupt cache as I attempted to visit the backend on Firefox and noticed that the issue wasn’t there. I had to delete all Chrome browsing data (cache alone wouldn’t do it).
You can accomplish this via the save_post action: add_action( ‘save_post’, ‘wpa78558_save_average_meta’, 100 ); function wpa78558_save_average_meta( $post_id ) { if ( !wp_is_post_revision( $post_id ) ) { $graphics = get_field(‘graphics’, $post_id); $gameplay = get_field(‘game-play’, $post_id); $life = get_field(‘life’, $post_id); $sound = get_field(‘sound’, $post_id); $overall = $graphics + $gameplay + $life + $sound; $overall = $overall / 4; … Read more
Move the query part to a separate function that returns the data you need: function rs_get_scripts_data(){ $array = array(); // query + add stuff to array return $array; } and use it with wp_localize_script like: $array = rs_get_scripts_data(); $myscript_vars = array( ‘array’ => $array ); wp_localize_script( ‘myscript’, ‘myscript’, $myscript_vars );
The following does the trick: add_action( ‘admin_footer-nav-menus.php’, ‘block_sortables_wpse_90610’ ); function block_sortables_wpse_90610() { ?> <script type=”text/javascript”> jQuery(document).ready(function($) { $(“dt.menu-item-handle”).sortable({ disabled: false }); }); </script> <?php } This also works: sortable(false). Docs: http://api.jqueryui.com/sortable/#option-disabled
You have to change siteurl and home in the wp_options table to your server address. Just go to the table wp_options in phpMyAdmin, look in the option_name column for siteurl respectively home and overwrite their value in the option_value to http://www.scorejava.com/wordpress in your case.
Check the post type: function aisis_page_button_link(){ global $post_ID, $temp_ID, $iframe_post_id; if ( ‘page’ !== get_post_type( $post_ID ) ) return; // continue
This was due a brute-force attack on the WordPress install (according to my host).
Why is $_POST Empty in Profile Edit Admin?
I think you need to use “global $current_user;” in your function to get the details of $current_user and global $wp_admin_bar; for admin bar. This is how I managed to get the role of the current user and change the URL from admin depending on role (It doesn’t solve your issue, but maybe you find it … Read more
Without changing anything, everything seems OK today. The auto-suggest works and suggests me existing tags when I begin to type a word… I don’t know why but maybe there was a problem because I’ve firstly created this custom taxonomy as hierachical before I decided to change it to non-hierarchical.