This Entry

"" was written by , and filed under

There are .

↓ Read comments, respond or follow responses via .

Trackback this entry. Trackback this entry.

There are .

↓ Jump to comments or follow responses via .

&title_after='); ?>


.

.

get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'"); if (0 < $numposts) $numposts = number_format($numposts); $numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); if (0 < $numcomms) $numcomms = number_format($numcomms); $numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->term_taxonomy where taxonomy='category'"); if (0 < $numcats) $numcats = number_format($numcats); ?>

get_var("SELECT t.term_id FROM $wpdb->terms as t, $wpdb->term_taxonomy as tt WHERE tt.taxonomy='category' AND t.term_id=tt.term_id AND (t.slug='sidenotes' OR t.slug='asides' OR t.slug='dailies')"); ?>

1 ) { ?>

ID; $parent = 1; while ( $parent ) { $subpages = $wpdb->get_row("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE ID = '$currentpage'"); $parent = $currentpage = $subpages->post_parent; } $parent_id = $subpages->ID; $haschildren = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id'"); if ( $haschildren ) { ?>