My custom title gets duplicated at every save or post update

First of: Your custom title suffix getting duplicated might not be what you want to happen, but is expected behavior as per your code sample. The save_post action hook runs everytime a post (or page) is created or updated. Hence your callback runs everytime. Let me offer two solutions: 1 Use the wp_insert_post action instead … Read more

Notify new post on page

You can use the publish_post action, which is triggered when a post is published. Knowing that, you can create a function and call that function whenever the publish_post action is triggered using the add_action function. An example from the docs: function post_published_notification( $ID, $post ) { $author = $post->post_author; /* Post author ID. */ $name … Read more

Replace Unwanted Space in Post Content URL

I think you should run this query. To replace space with dash. update wp_posts set wp_posts.post_name = REPLACE( wp_posts.post_name, ‘ ‘, ‘-‘ ); Don’t forget to change table_prefix in this. And also, keep a backup on current database before trying.