代码可自行修改,下面是获取近60天内的文章<?php function filter_where($where = '') { $where .= " AND post_date > '" . date('Y-m-d', strtotime('-60 days')) . "'"; return $where; } add_filter('posts_where', 'filter_where'); query_posts($query_string); ?>
下一篇:css3文字高亮发光特效
编程知识库是国内专业的网站建设资源编程技术学习类网站