You can use get_page_by_title http://codex.wordpress.org/Function_Reference/get_page_by_title to check if another page/post is using the same title. If so, get the content of that post and insert it using wp_insert_comment, and delete the original post with wp_delete_post. Finally, glue all these together inside the save_posts action hook.
Related Posts:
- How to Orderby Comments by post title?
- How to style archive post titles… but only those posts who have comments?
- Comment count next to post title?
- How to change the case of all post titles to “Title Case”
- Apply the_title() filter in post & page title, but not in menu title
- How to make comments work for a post loaded per Ajax?
- Remove post title input from edit page
- Allow variable amount of comments before pagination
- Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg
- get comments and get posts in loop
- Disallow Same Post Title
- Get title of post without using the_title();
- Verify if tag is used on posts
- Dynamically update post title in admin page
- How to display comments and comment form on custom post type?
- Comments are assigned to wrong or related post
- How can I allow editors to leave comments on posts that have not yet been published?
- Update post date on every new comment?
- How to show posts rank based on custom field value
- One comment per user email per post
- Can’t show comments count per post outside loop
- Only display posts with comments
- Comments enabled, but disabled at the same time
- Comments not showing in custom post type – WordPress
- How to output comments number of a post per day?
- Enable commenting on front-end preview page for pending posts
- Hide comments awaiting moderation from user who submitted the comments
- Displaying Page Title on index.php
- if custom post type exist
- How to intercept Post Title on Post-Save
- Testing for post title in ‘if/else’ statement returns no content
- get_post_field – Title without paragraph
- Hide Post comments when displayed via WP_Query
- Including new Javascript only after a comment is made
- Add Category name to Post Title (h1)
- How to add a custom field after wp post
- Disable Post/Page comment emails for creators
- Sorting posts alphabetical that have single digits
- Display posts with comments closed, with pagination?
- How Can i Get 5 Recent Post Title With Corresponding Link?
- Why is WordPress redirecting users to random posts after commenting?
- How to get most recent commented post above new submitted post in WordPress?
- When trashing a post, also trash related comments
- how to find user ids of all commenters in a post
- I want to show category in the post title , how can I do
- Diplay comment date on WP_Post_Comments_List_Table
- How to prevent WordPress from updating the modified time?
- How to display following posts titles in separate div’s on a separate webpage
- Posts vs. Pages
- Blog Posts not showing title
- Lose “Blog Archive” from page title
- count the total number of comments the user has received for his published posts
- If modified on same day, show only time
- WordPress not opening posts with only numbers if permalink is post_name
- How to allow logged in users to post anonymously
- Email entire post contents
- Query get post,how to add comment box
- Update all comments time to random dates?
- Enable Comments Box On Custom Post Type
- Turn On Comments On Custom Post Types in Directory Theme
- Emojis replaced by ‘?’ automatically
- Move comments only from one WP installation to another
- Second comments section for one post/page
- A friend wants to make a comment on one of my articles, she has to be logged to wordpress?
- Get all images in post and comments like Twitter before post title
- Is it possible to paste a link without tags and make it directly a link in a post?
- Showing author page if user has no post
- Customizing Comments on Posts
- sql select for post_title and a term name
- WordPress is replacing double minus signs in Post Title, how to disable it?
- WordPress Comment posting problem
- How do I change the core post search algorithm? Where is it found/constructed?
- What do comments with […] mean?
- Is there a way to specify an extra class for a post or page with no title?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- Internal post link creates comments on its own
- How to get posts and comments amount per hour, per year and per month?
- Show comment number per author per day
- Add title for previous and next posts to Yoko Theme
- Images inside post title
- Get all comments of author’s posts
- Loop doesn’t show title of second post and posts thereafter
- How To capitalize The First Letter Of Every Word In The Post Title
- SQL Command for restoring trashed comments
- Howto show comment count by post in post?
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- How to show show the Second page title in the page
- How to get links to the last N posts in a specific category?
- Create a list of posts with topic headdings
- Hide comments and posts posted by other user
- Let both the admin and post author update comment meta
- Blog post not showing title
- How can I remove the first two words and shorten get_the_title()
- How do I include the category next to the title of a post?
- Replace image name on upload to the new post name on front-end form
- Edit the post title from the frontend
- Why in my query is display two title?
- Image behind the post’s title
- Change Post Title For Specific Category
- How to remove “» (title of post or page)”?