Searching for Posts

描述

In custom post type “search post” that is loaded by default with activation of plugin,
You could choose different searching criteria for posts.

For example,

you are able to choose would you like to search posts by only typing one letter that is placed in title or content of a post or you could search for posts by Categories, Tags or Custom post types or you are able to combine all of these elements.

屏幕截图

  • First screenshot represents one searching form on admin side.
  • Second screenshot displays shortcode of one searching form.
  • Third screenshot shows the final version of serching form looking from user experience.

安装

  1. Upload searching-for-posts.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php echo do_shortcode("[search_post id='id_of_serch_post']"); ?> in index.php or header of your templates

常见问题

Why should I put the shortcode in index.php file or in header of templates ?

An answer to that question.

Because of the loop in templates. Searching form needs to be exactly above of the default loop of the posts.

评价

阅读所有1条评价

贡献者及开发者

“Searching for Posts” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Searching for Posts”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.1

  • A change since the previous version.