ajax form function error

This error is telling you that there was a 500 error in the PHP of your AJAX callback: jquery.js:8625 POST /admin-ajax.php 500 () This would be caused by a syntax error or other coding mistake. In looking at your code one obvious major problem is here: // use \Aws\Polly\PollyClient; // this was moved to before … Read more

Why my wp_enqueue_script doesnt work on some page?

Hi add this code to your Function.php and jquery-ui.js should be loaded correctly on your website. // Register Script function custom_scripts() { wp_register_script( ‘jquery-ui’, ‘/assets/js/jquery-ui.js’, false, false, true ); wp_enqueue_script( ‘jquery-ui’ ); } add_action( ‘wp_enqueue_scripts’, ‘custom_scripts’ );

save_post not working

Try this: add_action( ‘save_post’, ‘vg_update_timestamp’, 0, 1 ); May be this will help… I think i made a little mistake…But i am little confused about priorities… so try this: add_action( ‘save_post’, ‘vg_update_timestamp’, 10, 2 ); Because, Docs says Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order … Read more