Fix Timeline-WP 1.0 Theme


Fix timeline-scroll-bar For Timeline-WP 1.0 WordPress Theme From http://www.timeline-wp.com

Header.php Change Line 114

			anchor_href = $("#"+id).attr('href'); // #mm_yyyy
			if($(anchor_href).length==false){
				location.href='/date/'+anchor_href.substring(4)+'/'+anchor_href.substring(1,3)

to

			anchor_href = $("#"+id).attr('href'); // #mm_yyyy
			if($(anchor_href).length==false){
				location.href='/'+anchor_href.substring(4)+'/'+anchor_href.substring(1,3)

Change Line 189

                $sql = "SELECT distinct date_format(post_date,'%M %Y') date,
                date_format(post_date,'%m_%Y')  as link
                FROM wp_posts order by date_format(post_date,'%Y/%m')desc";
                $results = $wpdb->get_results($sql);

to

                $sql = "SELECT distinct date_format(post_date,'%M %Y') date,
                date_format(post_date,'%m_%Y')  as link
                FROM $wpdb->posts order by date_format(post_date,'%Y/%m')desc";
                $results = $wpdb->get_results($sql);