Hi everyone,
I am trying to give my client good usability by creating Post categories from a Page title, as part of an ecommerce WP site I am designing.
The ecommerce "products" are Posts that need to be linked to multiple Page parents - e.g. an "Acme Bike Helmet" product may have two parents (as it could be used by different ecommerce customers), such as "Mountain Bike helmets" and "Road Racing Helmets" and these parents would need to be WP Post categories in order to assign more than one parent to a "product".
But these parent pages also need to be (and function) as WP Pages in their own right with descriptions, images and the ability to have any Child Post "Products" show up as thumbnails in the sidebar.
So essentially I am looking to use the information my clients types into the Page title for a parent Page, to also create a WP Post category of the same name, to prevent duplication of hierarchies.
I suspect I will have to write some code similar to the code on categories.php and some how execute it when the "Publish" or "Update Page" buttons are clicked on the parent Page.
*phew* - OK... I hope this is not too confusing, and hopefully my in-experience has not missed a very simple solution.
I find this type of problem intriguing and would be delighted if one of you hot-shot WP gurus can help me with this one.
Oh... and I have a basic knowledge of PHP but have good understanding of OOP coding principles from other languages, so would be happy to try and make it work.
My thanks in advance.
D