wp_postsテーブル

WordPressのデータベースの中の「wp_posts」テーブル構造の記録です。

< スポンサーリンク >





wp_posts

フィールド種別説明
IDbigint(20) unsigned投稿ID(保存順に自動採番)
post_authorbigint(20) unsigned投稿者のユーザID
post_datedatetime投稿日時
post_date_gmtdatetime投稿日時(GMT)
post_contentlongtext本文
post_titletextタイトル
post_excerpttext抜粋オプション
post_statusvarchar(20)投稿ステータス
comment_statusvarchar(20)コメントステータス
ping_statusvarchar(20)ピン・ステータス
post_passwordvarchar(20)閲覧パスワード
post_namevarchar(200)投稿スラッグ
to_pingtext 
pingedtextピン通知済み URL
post_modifieddatetime更新日時
post_modified_gmtdatetime更新日時(GMT)
post_content_filteredlongtext 
post_parentbigint(20) unsigned親ID
guidvarchar(255) 
menu_orderint(11)ページの表示順
post_typevarchar(20)投稿種別
post_mime_typevarchar(100)添付ファイルのとき MIMEタイプ(image/png など)
comment_countbigint(20)コメント数

説明

各カラムの説明です。

post_status:投稿ステータス

‘publish’: 公開済み
‘pending’: ペンディング
‘draft’: 草稿
‘private’: プライベート(非公開)
‘static’:(2.0.x 以前はページ)
‘object’:
‘attachment’:
‘inherit’: 継承(添付ファイル、改訂履歴・自動保存のとき)
‘future’: 予約投稿

comment_status:コメントステータス

‘open’: 許可
‘closed’: 不許可
‘registered_only’: 登録ユーザのみ

ping_status:ピン・ステータス

‘open’: トラックバック・ピンバックを受け付ける
‘closed’: 受け付けない

post_name:投稿スラッグ

‘{親ID}-revision(-#)’ (改訂履歴のとき)
‘{親ID}-autosave’ (自動保存のとき)

post_parent:親ID

親ページの投稿ID
添付ファイルが属する投稿ID
改訂履歴・自動保存のベース投稿ID

post_type:投稿種別

‘post’: 投稿
‘page’: ページ
‘attachment’: 添付ファイル
‘revision’: 改訂履歴・自動保存

インデックス

キー名Typeフィールド
PRIMARYPRIMARYID
post_nameINDEXpost_name
type_status_dateINDEXpost_type
post_status
post_date
ID
post_parentINDEXpost_parent
post_authorINDEXpost_author

< スポンサーリンク >※広告先のお問い合わせは広告主様にお願いします