Let's say we have three custom fields:
- Pirates
- Robots
- Ninjas
Maybe we're saving information about different people who are related to a post in each of those professions.
What I'm trying to figure out is how to save that all into one custom field, let's call it Professions, when the page is Updated or Published (ie, when the page is saved in some way).
Bonus would be to add the content to that field to.
Why? This makes it a lot easier to include this stuff in default WP search results.
Any ideas?
edit_post
(after the info has saved) and there get the information you need and save it to a single post meta as an array.get_post_meta($post->ID, 'pirates', true);
for example.