Analysis of the article table (Function) WordPress tables of data

Analysis of the data table

wp_posts (Articles table)

Figure I

Table fields are as follows:
ID (article ID)
post_author (author of the article name, I think I can be a user name, or a user ID)
post_date (Article publication date)
post_date_gmt (article release date, GMT)
post_content (content of the article )
POST_TITLE (article title)
post_exerpt (excerpt)
post_status (article states, publish / Auto-Draft / the inherit)
comment_status (whether to open a review, the default is open, open)
ping_status
post_password (article password, if the encryption, then you need to enter the corresponding password to open)
POST_NAME (article abbreviated name)
to_ping (the ping link)
pinged (PING has had links)
post_modified (article modification time)
post_modified_gmt (Text Revision time, GMT)
post_content_filter
post_parent (parent article, mainly used on Page)
the GUID of
menu_order (sort ID)
post_type (article type, post or Page)
post_mime_type (MIME type)
COMMENT_COUNT (total posts comments)

wp_postmeta (article metadata)

Figure II

Field Analysis:
meta_id (metadata increment article ID)
the post_id (article ID)
meta_key (metadata key)
meta_value (metadata values)

Specific Case Analysis

To write an article, for example

Figure:
Figure I

Page effects, as follows:
Figure II

Corresponding data in the table, we see the following data:
Shown here is wp_postmeta table:
Figure III

Look wp_posts table below (but still just a data only, on this point I am a little puzzled):
Figure IV

Guess you like

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