Post Tagging Problems
I have facing issue because of post tagging in search form.
In my site I have three type of search.
1. Global Search – Search from all site.
2. Only particular custom post type search (Books) – Search data only from “Book” custom post type.
3. Product Search – Only from product. (I have used product search weight for that)
Now my problem is:
If I search from Custom post type search(book) or from product search(Woo-commerce widget) then it return me all data including blog post(WordPress default post type post).
When I rectifying this issue it because of post tagging.
Means if I add “book blog” tag to my “first blog post” and if I add “book CPT” tag to my custom post type post and then I search “book” in my custom post search then it should return “book CPT” only but instead of this it returns me both post.
Why this happens I don’t know? Please suggest me what should I do?
for custom post type search I have created Custom Search form using this link.
<input type="hidden" name="post_type" value="book" />
- The topic ‘Post Tagging Problems’ is closed to new replies.