这段代码应该显示我的Google日历RSS中的所有项目,但它将显示的帖子限制在大约23个:
http://james.cridland.net/code/google-calendar.html
发布于 2012-07-14 22:26:10
除非您已经更改了这行代码:
// ...and how many you want to display (leave at 999 for everything)
$items_to_show=999;它应该包含999个条目(或者它提到的所有内容)。
脚本似乎有一个错误,这里(在max_results后面缺少'=‘)。
替换为:
// Form the XML address.
$calendar_xml_address = str_replace("/basic","/full?singleevents=true&futureevents=true&max-results=".$items_to_show."&orderby=starttime&sortorder=a",$calendarfeed); //This goes and gets future events in your feed.https://stackoverflow.com/questions/11484458
复制相似问题