WordPress.org

Forums

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

  1. predatorkill
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/wp-custom-fields-search/

  2. don benjamin
    Member
    Plugin Author

    Posted 1 year 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.

    Thanks,
    Don

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

Tags

No tags yet.