【发布时间】:2016-12-18 21:55:25
【问题描述】:
.大家好
如何执行以下代码:
If ID search form == book
{The Post excluded from the search}
else
{excluded a custom post type "book"}
我的搜索表单是: 第一个
<form id="book" > it's a custom post type
第二个
<form id="post" > //It's default Post type WordPress
我可以这样做吗?
【问题讨论】:
标签: wordpress forms search conditional-statements