Horje
Create a faceted search interface for any post type. Wordpress Tutorial

Noted That:

  • To install correctly this bang-faceted-search.zip .
  • Fisrt Download the bang-faceted-search.zip to your computer
  • Extract/Open bang-faceted-search.zip to Your Computer.
  • Then, Find readme.txt file inside bang-faceted-search.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " bang-faceted-search.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse " bang-faceted-search.zip "  Downloaded plugin from your computer, Where you downloaded bang-faceted-search.zip According to Step – 1 Above then, click on " Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Bang Faceted Search " folder is added on left sidemenu. Now, Click on " Bang Faceted Search " folder.

   Noted that: If you do not see " Bang Faceted Search " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  Bang Faceted Search Configurtions and Settings or How to work " Bang Faceted Search " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Bang Faceted Search " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Bang Faceted Search
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  1. Upload the bang-faceted-search directory to your /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create a template search.php in your theme
  4. Go to Settings > Faceted Search to set up your search pages.

Creating a search page

By default, you’ll have a single search address, at the site root / . This lines up with WordPress search.

In the WordPress admin adrea, go to Settings > Faceted Search. At the top is

Creating a search template

You need to create a search template in your theme called search.php , if you don’t already have one. This template will be used whenever the user searches your site. You can have more than one search template, each.

Add this code to your functions.php to create a search-specific sidebar:


register_sidebar(array( 'name' =>
 'Search', 'id' =>
 'search'
));

Your search template should include that sidebar:




Then in the admin interface, drag Facet widgets into that sidebar to add, customise and re-order the search widgets for your site.

Customising the faceted search

Your site can have more than the default search page, and you can use the faceted search plugin to search custom post types.

To make a custom search, create a page with a custom template in your theme. For example, if you have a page called /products , then create a template in your theme called products.php . Near the start of this template, call this code:


$faceted_search = bang_faceted_search(null, array( 'force' =>
 array( 'post_type' =>
 'product' )
));

Later on, display the results with something like:


if ($faceted_search->
has_posts()) { echo "

Search results

"; $faceted_search-> write_feedback(); $posts = $faceted_search-> get_posts(); global $post; $original_post = $post; foreach ($posts as $post) { setup_postdata($post); // ... write the post ... } $post = $original_post; setup_postdata($post); echo $faceted_search-> paginate(); }

create , faceted , search , interface , post , type , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference