11.02.2011


Структура объекта POST


Категории: WordPress — Метки: , — Administrator

Обратиться к свойствам объекта можно так: $post->ID.
Состав объекта:

stdClass Object
(
[ID] => 88
[post_author] => 1
[post_date] => 2011-02-05 15:33:32
[post_date_gmt] => 2011-02-05 15:33:32
[post_content] =>
[post_title] =>
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => closed
[post_password] =>
[post_name] => at_wordpress
[to_ping] =>
[pinged] =>
[post_modified] => 2011-02-11 09:58:59
[post_modified_gmt] => 2011-02-11 09:58:59
[post_content_filtered] =>
[post_parent] => 6
[guid] => http://soft.consulting-plus.com/?page_id=88
[menu_order] => 0
[post_type] => page
[post_mime_type] =>
[comment_count] => 0
[ancestors] => Array ( [0] => 6 )
[filter] => raw
)




Календарь


Архив