I want to store two types of data associated with posts/pages:
IDs of other posts/pages on the same blog linked within the content of each post/page
certain external URLs contained within the content of each post/page
I’ve created two custom taxonomies: internal_reference and external_reference. Both are non-hierarchical and non-public (I’ll write template tags to get the data). I’ve written a function that can extract the IDs and URLs from the post/page content.
The problem I’m having is how best to store this information. Clearly I must use wp set post terms to associated the terms with the post in question, but I can’t work out whether I need to use add_term_meta to set the IDs and URLs or if I can just use the term’s name or slug field.
How is this sort of thing intended to be done in WordPress? Forgive me if this is a rather basic question, but the WordPress documentation is not clear enough for me to understand this.