0

I've been trying to find a solution to this, but haven't had a whole lot of luck.

I need to give the user control over which posts are being displayed on the homepage via selectboxes. Essentialy, a 'filter by' (list of categories) and a 'sort by' (date, name and a few other custom fields).

Is there anyway to do this and have the loop refresh dynamically?

Thanks!

Z

4

1 回答 1

0

如果您想要一种非编码方式来执行此操作,您可以使用 Types & Views 插件:http ://wp-types.com/

否则,您需要在用户选择类别和其他条件后使用 javascript 或 jQuery 触发更新。类似于提交按钮的东西,它触发所选标准的 ajax 帖子,然后检索请求的帖子并更新页面内容。

于 2013-07-29T18:56:57.723 回答