My blog has about 50-100 posts a day. I like the "calender" widget.
If you scroll your mouse over it / check source wordpress displays each title of posts of that day.
sharelink: http://b.imagehost.org/view/0415/wordpress
hotlink: http://b.imagehost.org/0415/wordpress.png
anyways, I want to remove that loop of prints, it's wasting computer resources, and multiplying my html file size.
Question: Where is file location of the wordpress default widget functions?
function get_calendar , line 1060 in wp-includes/general-template.php
and comment out
/**$ak_titles_for_day = array();
$ak_post_titles = $wpdb->get_results("SELECT ID, post_title, DAYOFMONTH(post_date) as dom "
."FROM $wpdb->posts "
."WHERE YEAR(post_date) = '$thisyear' "
."AND MONTH(post_date) = '$thismonth' "
."AND post_date < '".current_time('mysql')."' "
."AND post_type = 'post' AND post_status = 'publish'"
);
**/
ClaytonJames
Member
Posted 1 year ago #
anyways, I want to remove that loop of prints, it's wasting computer resources, and multiplying my html file size.
Doesn't it just pull the information from the existing database? How does that affect the size of your html files?
[edit] ..and don't forget, when you upgrade WordPress next time, you're gong to loose those edits you made in general-template.php, so be prepared for that.