WP Custom Fields Search
auto navigate to first result (2 posts)

  1. predatorkill
    Posted 3 years ago #

    hi, is there a way to auto navigate to the post page of the first result found after a successfull search?

    also, is there a way to show no results when the user does not enter anything inside the search input box and clicks submit?


  2. don benjamin
    Plugin Author

    Posted 3 years ago #

    Hi @predatorkill,

    No, neither of those functionalities is in there. You could probably acheive the first one by customising the search template in your theme (possibly called search.php) to redirect to the first result.

    The second, is not possible with the plugin as is, it's designed to treat an empty field as unrestricted so that if there are e.g. three inputs searching different fields then if you only fill in one it only restricts that one. I can see how there could be use-cases for what you suggest though so will consider this for future versions.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Custom Fields Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.