Joy
(@joyously)
You could probably do a complicated SQL statement but what would you do with the originals?
If you combine all posts into one huge post, then there will be several questions:
– Which one of the post titles should you keep?
– Which URL should you keep?
– Which post’s image should you keep?
– Are you going to keep all the individual posts, too? In that case you’re going to have duplicated content on your site, something that Google may not like?
… and so on.
So what’s your use case?
Why isn’t the built in “Author” archive page sufficient for your needs?
Thread Starter
yhazem
(@yhazem)
Hello, thank you @tobifjellner and @joyously for your prompt reply. I want to delete the originals and keep the merged files with the author’s first post’s title, url, and image. But I still want it to have all the other post’s data, categories, and tags. Is it possible.
Thank you very much for your help.
-
This reply was modified 5 years ago by
yhazem.
Joy
(@joyously)
There are no files with the content. There are database entries containing the content.
You could use a plugin to export the posts to a CSV format, then edit them in a spreadsheet. Once they look like you prefer, delete originals and import the changed ones. If you do it this way, practice on a sandbox, like https://wpsandbox.net/
Definitely make a backup before you start.
Thread Starter
yhazem
(@yhazem)
@joyously I want to make it automated, so is there a possible code to make so when an author creates a new post it automatically merges with the current one.
Thread Starter
yhazem
(@yhazem)
ok @sarmstead , thanks a lot for your help.