Title: [Plugin: Solr for WordPress] Custom Theme Integration?
Last modified: August 20, 2016

---

# [Plugin: Solr for WordPress] Custom Theme Integration?

 *  [4lvin](https://wordpress.org/support/users/4lvin/)
 * (@4lvin)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-solr-for-wordpress-custom-theme-integration/)
 * I need to clarify following questions:
    - Will Solr be integrated into WordPress original Search Boxes?
    - Do i need to implement following steps. What are these?
 *     ```
       Custom Theme Integration
   
           Create a new theme file called "s4w_search.php".
           Insert your markup, use template methods s4w_search_form() and s4w_search_results() to insert the search box and results respectively.
           Add result styling to your theme css file, see solr-for-wordpress/template/search.css for an example.
           You can use the search widget in your sidebar for search, or use a custom search box that submits the query in the parameter "s".
       ```
   
 * [http://wordpress.org/extend/plugins/solr-for-wordpress/](http://wordpress.org/extend/plugins/solr-for-wordpress/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-solr-for-wordpress-custom-theme-integration/#post-2905763)
 * I’m also not sure why the plugin doesn’t integrate into regular search results
   the same way, for example, [http://wordpress.org/support/plugin/relevanssi](http://wordpress.org/support/plugin/relevanssi)
   does.
 * There’s a lot of unnecessary work before the plugin starts working right and 
   doesn’t break the search page UI otherwise.
 *  [dbejean](https://wordpress.org/support/users/dbejean/)
 * (@dbejean)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-solr-for-wordpress-custom-theme-integration/#post-2905768)
 * The plugin can’t implement the standard wordpress loop.
    It is why a php template
   is provided and you need to customize it in order to match your theme look and
   feel.
 *  [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-solr-for-wordpress-custom-theme-integration/#post-2905769)
 * [@dbejean](https://wordpress.org/support/users/dbejean/) Why can’t it implement
   the standard loop? This plugin [http://wordpress.org/extend/plugins/relevanssi/](http://wordpress.org/extend/plugins/relevanssi/)–
   it’s a transparent replacement that doesn’t require any changes to the current
   theme (maybe minor ones to add additional formatting). It’s really slow though,
   but it shows that a straight replacement can work just fine and is a lot more
   user-friendly.
 *  [dbejean](https://wordpress.org/support/users/dbejean/)
 * (@dbejean)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-solr-for-wordpress-custom-theme-integration/#post-2905770)
 * My understanding of relevanssi is that it modify the mysql query of the standard
   search in a hook and so it is no necessary to change anything in the search.php
   script.
 * Solr For WordPress have to call an external web service (Solr) and the hook in
   order to change the mysql query can be used. All id done in replacement of the
   standard search.php script.
 * I am not sure it is clear.
 *  [alxvallejo](https://wordpress.org/support/users/alxvallejo/)
 * (@alxvallejo)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-solr-for-wordpress-custom-theme-integration/#post-2905771)
 * I think one of the trickiest parts is dealing with the facets. It doesn’t use
   a simple wp_list_categories method for displaying them. It uses its own listing
   function with nested ul’s.
 * Has anyone had any luck with this?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Solr for WordPress] Custom Theme Integration?’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/solr-for-wordpress.svg)
 * [Solr for WordPress](https://wordpress.org/plugins/solr-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/solr-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/solr-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/solr-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/solr-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/solr-for-wordpress/reviews/)

## Tags

 * [solr](https://wordpress.org/support/topic-tag/solr/)

 * 5 replies
 * 4 participants
 * Last reply from: [alxvallejo](https://wordpress.org/support/users/alxvallejo/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-solr-for-wordpress-custom-theme-integration/#post-2905771)
 * Status: not resolved