[wp-hackers] creating posts with taxonomy when creating that taxonomy

Kirk Wight kwight at kwight.ca
Sat Aug 4 23:16:57 UTC 2012


Hello,

I'm using wp_insert_post hooked to create_{$taxonomy} to create a bunch of
posts when a term is created for a custom taxonomy. I'd like to have those
inserted posts automatically be given the term that created them, but can't
figure out from where to get that piece of info, or how to do it.

Is that info in a global maybe ($wpdb?), and could it be used somehow with
the tax_input key of wp_insert_post?..

Thank you!


More information about the wp-hackers mailing list