-3
的wordpress在loop.php我有三个输入型电台: 1过滤发贴日期 2过滤器通过计数意见 三滤的评论WordPress的如何,我可以使用AJAX来获得职位
我怎么可以使用Ajax来获得这些过滤器?
这是我的代码
<div class="filter">
<form action="#" id="form-filter">
<input type="radio" id ="listing-1" name="filters" value="recents" checked><label for="listing-1">the must recent</label>
<input type="radio" id ="listing-2" name="filters" value="views"><label for="listing-2">the must views</label>
<input type="radio" id ="listing-3" name="filters" value="comments"><label for="listing-3">the must comments</label>
</form>
</div>
,这是代码的PHP
if (have_posts()) {
while (have_posts()) {
the_post();
//the_post_thumbnail
// Post Content here
} // end while
} // end if
感谢
欢迎来到SO。请发布迄今为止的代码。 – 2014-10-27 17:42:28
1.认为,2.类型,3.执行。 – 2014-10-27 17:42:59