I was wondering is there a way to create a post for every user. Sort of like a mass update that would associate certain user meta to the post created.
I would prefer running a loop script that goes through all users and creates a post for each using certain user meta info.
For instance, if I have five users that I would like to create posts for. The posts would be titled using each of their full names.
Basic Example:
Users
johnny
jannie
bobbie
craig
mitch
User Meta
John Doe
Jane Doe
Bob Collins
Craig Matthews
Mitchell Humphries
Post Titles:
John Doe
Jane Doe
Bob Collins
Craig Matthews
Mitchell Humphries
This request is uncommon but I need a temporary fix until I finish a plugin for full user search. Any help with this would be greatly appreciated.
Create this as a plugin and activate it. It deactivates itself after it creates a primary page for Authors and sub-pages for each Author+ or better Role. At the end, it deactivates itself.
Improve it as you wish. It uses
It’s kind of a hacky approach but will do what you need. It uses a PHP 5.3 Closure. Consider reverting to PHP 5.2 compatibility an assignment 🙂
Regards.