ページ

取得方法(他の方法でも良いと思いますが、、)
恐らくブログも同じデータ構造

<?php
$pages = get_posts('post_type=page');
foreach($block as $pages){
print_r($page);
}
?>

内容

[ID] 記事のID。ページ、ブログ等共通のシリアル番号。
[post_author] 投稿者ID
[post_date] ローカルの時刻での投稿日時
[post_date_gmt] GMTにおける投稿日時
[post_content] ページの内容
[post_title] ページのタイトル(日本語であれば日本語)
[post_category] カテゴリー
[post_excerpt] 不明
[post_status]記事の状態(公開済み、下書き(?)など)
[comment_status] コメントを受け付けているか
[ping_status] ?
[post_password] 投稿パスワード
[post_name] 恐らくパーマリンク名
[to_ping]
[pinged]
[post_modified]ローカル時刻での編集日時
[post_modified_gmt] GMT時刻での編集日時
[post_content_filtered]?
[post_parent] 記事の親記事
[guid]記事IDでのURL
[menu_order] ページ順序
[post_type]記事の種類(post / page / revision / attachment /…)
[post_mime_type] 記事のmimeタイプ(種類がattachmentの場合、image/jpeg など)
[comment_count] コメント数(?)


stdClass Object
(
[ID] => 56
[post_author] => 1
[post_date] => 2008-09-16 12:00:50
[post_date_gmt] => 2008-09-16 03:00:50
[post_content] =>
[post_title] => Some kind of test
[post_category] => 0
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => some_kind_of_test
[to_ping] =>
[pinged] =>
[post_modified] => 2008-09-16 22:45:38
[post_modified_gmt] => 2008-09-16 13:45:38
[post_content_filtered] =>
[post_parent] => 2
[guid] => http://example.com/?page_id=56
[menu_order] => 10
[post_type] => page
[post_mime_type] =>
[comment_count] => 0
)


コメントを残す

メールアドレスが公開されることはありません。

7 + 1 =