Hi,
I had this bit of coding in my functions.php that stopped working.
it looks like this.
global $wpdb;
$results = $wpdb->get_results("SELECT ID, post_title from $wpdb->posts WHERE post_status='static' AND post_parent=0 ORDER BY post_title");
what might be the cause ?
Thanks
Sadish
Thanks moshu,
Ryan mentioned in his recent post announcing the release candidate, that I can also post in this forum.
Anyway I figured it out myself.
post_status is not used for identifying whether it is a post / page.
now they use post_type field for that purpose.
Sadish
Devs our monitoring this forum now that the RC is out. It is a beta forum, right?
sadish, post_type is indeed what you want. Check for post_type = 'page'.