简体   繁体   English

WordPress:搜索输入值返回具有该名称的类别中的帖子-可能吗?

[英]Wordpress: Search Input Value returns posts from Category with that Name - Possible?

Is it possible that when a User inputs a term that matches a pre-defined term it will output all posts from that category_name? 用户输入与预定义术语匹配的术语时,是否可能会输出该category_name中的所有帖子? This way I can eliminate posts that are not in that category or have that search value in them. 这样,我可以消除不在该类别中或在其中具有搜索价值的帖子。

Search: COMEDY matches Category: COMEDY display ALL POSTS FROM CATEGORY COMEDY

You can query posts based on their category, if that's what you are asking for.. There is a clear and specific example in the documentations that explains how to query posts from a specific category - http://codex.wordpress.org/Function_Reference/query_posts#All_Posts_in_a_Category 如果需要的话,您可以根据其类别查询帖子。.文档中有一个清晰明确的示例,说明了如何从特定类别中查询帖子-http: //codex.wordpress.org/Function_Reference / query_posts#All_Posts_in_a_Category

anything else.. is just designing the right user interface (html/js/css) 其他任何事情..只是在设计正确的用户界面(html / js / css)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM