28.07.2010, 18:57
|
#28 (permalink)
|
| PostRank: 10
Registriert seit: 20.11.2008 Ort: Wien [Aut]
Beiträge: 1.836
| Hehe. Gerne. Viel Hirn, viel Weg, viel Ergebnis (hoffentlich) - auch wenn der Fragesteller vermutlich schon seid Wochen nicht mehr mit liest ;)
Nur zur Erklärung: Das wirft Dir lediglich Werte aus. Manipuliert is da noch nix.
Ergänzend noch folgendes, weil ich vor kurzem einmal geschaut hab, was in der WP_Query so alles drinnen ist: (Kommentare sind aus einem Mailverkehr mit jemand anderem) Code: /**
* WP_Query class and objects, etc.
*
* On every page/post/whatever load WP_Query fires up
* This is what it delivers
* Just tested on a page - so there's not to much to look at.
* Too bad, that i haven't got access on an installation where i could look at this when a post comes up.
*/
WP_Query Object (
[query_vars] => Array (
[pagename] => slug_name
[error] =>
[m] => 0
[p] => 0
[post_parent] =>
[subpost] =>
[subpost_id] =>
[attachment] =>
[attachment_id] => 0
[name] => slug_name
[static] =>
[page_id] => 0
[second] =>
[minute] =>
[hour] =>
[day] => 0
[monthnum] => 0
[year] => 0
[w] => 0
[category_name] =>
[tag] =>
[cat] =>
[tag_id] =>
[author_name] =>
[feed] =>
[tb] =>
[paged] => 0
[comments_popup] =>
[meta_key] =>
[meta_value] =>
[preview] =>
[s] =>
[sentence] =>
[category__in] => Array ( )
[category__not_in] => Array ( )
[category__and] => Array ( )
[post__in] => Array ( )
[post__not_in] => Array ( )
[tag__in] => Array ( )
[tag__not_in] => Array ( )
[tag__and] => Array ( )
[tag_slug__in] => Array ( )
[tag_slug__and] => Array ( )
[caller_get_posts] =>
[suppress_filters] =>
[cache_results] => 1
[update_post_term_cache] => 1
[update_post_meta_cache] => 1
[post_type] =>
[posts_per_page] => 10
[nopaging] =>
[comments_per_page] => 50
[no_found_rows] =>
[order] => DESC
[orderby] => WPDB-PREFIX_posts.post_date DESC
)
[request] =>
SELECT WPDB-PREFIX_posts.*
FROM WPDB-PREFIX_posts
WHERE 1=1
AND (WPDB-PREFIX_posts.ID = '85')
AND WPDB-PREFIX_posts.post_type = 'page'
ORDER BY WPDB-PREFIX_posts.post_date
DESC
[post_count] => 1
[current_post] => -1
[in_the_loop] =>
[post] => stdClass Object (
[ID] => 85
[post_author] => 2
[post_date] => 2009-08-27 18:52:27
[post_date_gmt] => 2009-08-27 16:52:27
[post_content] =>
[post_title] => Uppercase Title
[post_category] => 0
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => slug_name
[to_ping] =>
[pinged] =>
[post_modified] => 2010-06-07 12:24:22
[post_modified_gmt] => 2010-06-07 10:24:22
[post_content_filtered] =>
[post_parent] => 125
[guid] => http://example.com/?page_id=5
[menu_order] => 0
[post_type] => page
[post_mime_type] =>
[comment_count] => 0
[ancestors] => Array ( [0] => 125 )
[filter] => raw
)
[comments] =>
[comment_count] => 0
[current_comment] => -1
[comment] =>
[found_posts] => 0
[max_num_pages] => 0
[max_num_comment_pages] => 0
[is_single] =>
[is_preview] =>
[is_page] => 1
[is_archive] =>
[is_date] =>
[is_year] =>
[is_month] =>
[is_day] =>
[is_time] =>
[is_author] =>
[is_category] =>
[is_tag] =>
[is_tax] =>
[is_search] =>
[is_feed] =>
[is_comment_feed] =>
[is_trackback] =>
[is_home] =>
[is_404] =>
[is_comments_popup] =>
[is_admin] =>
[is_attachment] =>
[is_singular] => 1
[is_robots] =>
[is_posts_page] =>
[is_paged] =>
[query] => Array ( [pagename] => parent_slug/followed_by_slash_and_child_slug )
[queried_object] => stdClass Object (
[ID] => 85
[post_author] => 2
[post_date] => 2009-08-27 18:52:27
[post_date_gmt] => 2009-08-27 16:52:27
[post_content] =>
[post_title] => Upperandlowercase Title String
[post_category] => 0
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => slug_name
[to_ping] =>
[pinged] =>
[post_modified] => 2010-06-07 12:24:22
[post_modified_gmt] => 2010-06-07 10:24:22
[post_content_filtered] =>
[post_parent] => 125
[guid] => http://example.com/?page_id=5
[menu_order] => 0
[post_type] => page
[post_mime_type] =>
[comment_count] => 0
[ancestors] => Array ( [0] => 125 )
[filter] => page
)
[queried_object_id] => 85
[posts] => Array (
[0] => stdClass Object (
[ID] => 85
[post_author] => 2
[post_date] => 2009-08-27 18:52:27
[post_date_gmt] => 2009-08-27 16:52:27
[post_content] =>
[post_title] => Upperandlowercase Title String
[post_category] => 0
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => slug_name
[to_ping] =>
[pinged] =>
[post_modified] => 2010-06-07 12:24:22
[post_modified_gmt] => 2010-06-07 10:24:22
[post_content_filtered] =>
[post_parent] => 125
[guid] => http://example.com/?page_id=5
[menu_order] => 0
[post_type] => page
[post_mime_type] =>
[comment_count] => 0
[ancestors] => Array ( [0] => 125 )
[filter] => raw
)
)
)
Geändert von kaiser (28.07.2010 um 19:01 Uhr).
Grund: WPDB-PREFIX gegen Original Prefix getauscht, etc.
|
| |