How to get new post URL?

I’m wondering… how can I get the new post URL in my theme? Is there a built-in function for this? So, it should return something like Connor. 1 Answer 1 admin_url(‘post-new.php’); The admin_url function will handle generating most of the link, you just need to give it the final component. You can pass in … Read more

Enqueue Javascript Correctly for 3.5

I am trying to create tabs for admin settings page in wp, but I think I’m doing it wrong. The example below shows how I did it but I don’t know how to change this to use it correctly with no conflict ie. $. function my_plugin_load_js() { wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, ‘’); wp_enqueue_script(‘jquery’); wp_deregister_script(‘jquery-ui-core’); wp_register_script(‘jquery-ui-core’, ‘’); wp_enqueue_script(‘jquery-ui-core’); … Read more

Plugin Development: WordPress processes twice on post update. How to skip process on the first?

When you create a plugin and set up a process function, WordPress will run the plugin process function twice upon clicking the update button. I believe the first process is for the versioning (revision) post, and the second the actual post. Now, I’ve got an INSERT function in my process, so it is now inserting … Read more