Check if a new WordPress post is successfully published with jQuery

I have replace the answer I gave yesterday with this newly updated and tested version. I also added some code to test with that changes Publish to Update after 6 seconds. Please give it a shot. <input type=”submit” name=”save” id=”publish” class=”button button-primary button-large preventDefault” value=”Publish”> <script> var publishButton = document.getElementById(‘publish’); var checkPublishStatus = setInterval(function() { … Read more

Styles not showing up in WordPress site

I usually append a random number to the end of the stylesheet while in development mode, if I upload the file to the production server I manually change the version number like this: // Version – to prevent caching $version = mt_rand(1000, 100000); // $version = 1.0.0.0; // Enqueue CSS function wpb_enqueue_styles() { global $version; … Read more