Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter andey

    (@andey)

    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'"
    	);
            **/

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing Default WordPress Plugins’ is closed to new replies.