WordPress analysis classification data sheets of labels table (Function)

Analysis of the data table

wp_terms (Classification and Labeling table)

Figure I

Table fields are as follows:
term_id (classification or tag ID)
name (classification or label name)
Slug (alias)
term_group (classification label group, I think it should be used for sorting packets)

wp_termmeta (classification tag metadata table)

Figure II

Field follows:
meta_id (metadata increment ID)
term_id (classification tag ID)
meta_key (metadata key)
meta_value (metadata values)

wp_term_taxonomy (Classification and Labeling table)

Figure III
Field follows:
term_taxonomy_id (classification tag ID, mainly for wp_term_relationships, because wp_term_relationships, mainly articles and associated labels corresponding classification)
term_id (classification or tag ID)
Taxonomy (measure classification label)
Description (description)
parent (parent ID, for father and son or father and son set classification)
cout (the total number of classification article)

Specific examples of the analysis

Add to classify or label, for example:

add tag

Figure I

Once added, and increased in wp_terms wp_term_taxonomy corresponding data table, as follows: From this we can see, the classification or tag is determined, the key is wp_term_taxonomy table Taxonomy (usually two, one category, i.e., classification, the other is post_tag, namely by tag)
Figure II
Figure III

Guess you like

Origin www.cnblogs.com/youcong/p/11440647.html