Title: Search function not working
Last modified: August 20, 2016

---

# Search function not working

 *  Resolved [CarolWP](https://wordpress.org/support/users/carolwp/)
 * (@carolwp)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/search-function-not-working-9/)
 * If you are having categories on separate pages, is there any way to set up a 
   search form that will search all links (regardless of category)?
 * Currently, I have an overall library (Library 27) that includes all categories.
   I then have Libraries 1 through 26 set up with one category each. On the main
   page, I use:
 * [link-library-cats settings=27]
 * On each of the category pages, I’ll use something like:
 * [link-library settings=1]
 * What I’d like to do is to have a search form at the bottom of the main page and
   each category page that is:
 * [link-library-search settings=27]
 * The idea is to have that search form find links in any category. However, on 
   the main page, this form does not find anything. On the category pages, it finds
   only links already listed on that category page.
 * [http://wordpress.org/extend/plugins/link-library/](http://wordpress.org/extend/plugins/link-library/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [CarolWP](https://wordpress.org/support/users/carolwp/)
 * (@carolwp)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/search-function-not-working-9/#post-3525032)
 * I finally found an answer! The first thing you need to do is to create a search
   results page. The search results page will have a title something like “Search
   Results,” and the following two lines in it:
 *     ```
       [link-library-search settings=X]
       [link-library settings=X]
       ```
   
 * where X is the number of a library that contains _all_ your link categories.
 * Next, go to that page. When seen on its own (not as a result of a search), it
   will have a complete list of all your links. Ignore that, because no one will
   ever see it. Now view the source of that page. There will be a bit in it that
   will read something like this:
 *     ```
       <form method="get" id="llsearch">
       <div>
       <input onfocus="this.value=''" value="Search..." name="searchll" id="searchll" type="text">
       <input value="2003" name="page_id" id="page_id" type="hidden">
       <input value="Search" type="submit">
       </div>
       </form>
       ```
   
 * where the input value for the page_id will be your newly created page. Copy and
   paste all of that code into any page in which you want to have a form to search
   links, and save the page. Voila! You will have a search form that will search
   all your links, not just the ones on the page on which the search form is located.
   When someone uses the form, it will take them to your newly created Search Results
   page. However, the list of all the links will not appear on that page when it
   is found through the search function. Instead, that page will have only a search
   box and the results of the search.

Viewing 1 replies (of 1 total)

The topic ‘Search function not working’ is closed to new replies.

 * ![](https://ps.w.org/link-library/assets/icon-256x256.jpg?rev=971117)
 * [Link Library](https://wordpress.org/plugins/link-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/link-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/link-library/)
 * [Active Topics](https://wordpress.org/support/plugin/link-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/link-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/link-library/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [CarolWP](https://wordpress.org/support/users/carolwp/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/search-function-not-working-9/#post-3525032)
 * Status: resolved