HTML,CSS,PHP,ワードプレスカスタマイズ 技術情報資料

WP POSTデータ変数覚書

投稿の本文

$post->post_content
 

記事の抜粋取得

$post->post_excerpt
 

記事の投稿日時

$post->post_date
 

記事のタイトル取得

$post->post_title
 

記事名(スラッグ)取得

$post->post_name
 

記事のタイプ取得

$post->post_type
 

記事のID取得

$post->ID

スポンサーリンク

関連記事

スポンサーリンク

カテゴリー