なぜあなたのコードが機能していないのかわかりません...しかし、そうすべきです...
これが私のテスト結果です..
Array
(
[0] => WP_Post Object
(
[ID] => 31
[post_author] => 1
[post_date] => 2013-01-13 04:23:39
[post_date_gmt] => 2013-01-13 04:23:39
[post_content] => fdsfsdfsdfsdfsdfsd
[post_title] => sasd
[post_excerpt] =>
[post_status] => private
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => sasd
[to_ping] =>
[pinged] =>
[post_modified] => 2013-01-13 04:23:39
[post_modified_gmt] => 2013-01-13 04:23:39
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/wordpress/?p=31
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
)
ID on the first post found 31
sasd
投稿のタイトルとして があることを確認してください。このようなパーマリンクがありますhttp://localhost/wordpress/2013/01/13/sasd/
コンテンツを表示するには、次のようにする必要があります。$my_posts[0]->post_content
または、WP_Post Object
私が投稿したものを見て、他のデータを取得する方法のパターンを確認してください..