Modify wordpress search to search only pages and load matched page not search results

I am currently working on na project which requires a modification to wordpress search functionality.I would like to mod

I am currently working on na project which requires a modification to wordpress search functionality.

I would like to modify it in this manner

  • to make wordpress search only page titles.
  • to make search bar auto suggest page titles when a user begins to type on the search bar textfield.
  • once a matching page title is selected by user from the autosuggest drop down and searched, the corresponding page is loaded and not wordpress search result page.
  • possibility of also displaying most frequently searched pages in Autosuggest drop down.

I have been able to find a code snippet for functions.php file to limit search to page titles.

I have also setup elastic search and installed elastic press plugin for the site. Wanted to use this for autosuggest functionality and other features I might implement in future.

That is the much i have done. I really need help with the last two features i listed.

Much help will be highly appreciated. Thanks.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745396817a4625917.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信