我只想在我的wordpress首页上展示最后X天的帖子。比方说,一周,那么7天。
,告诉wordpress在循环的最后X天只选择文章的方式是什么?
目前,我已经让它在黑客中工作,但它破坏了分页。进入下一页并不会选择正确的帖子。
//Hack found on the bottom of http://codex.wordpress.org/Template_Tags/query_posts
function filter_where($where = '') {
//posts in the last 7 days
$where .= " AND pos
我有Wordpress博客网站,我希望用户输入他们的电子邮件来订阅我的blog.If,我在博客中添加任何新的帖子,订阅者应该得到电子邮件提醒。
I know this is possible since I have seen in many blogs.
If anyone know how to implement this in Wordpress, let me know.