Skip to content

Latest commit

 

History

History

algolia-search

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Algolia Search Custom Implementation Plugin Docs

How to setup in WP?

  1. Create an account on Algolia and note down the app id and admin api key
  2. Install the algolia-custom integration plugin by dropping it into wp-content/plugins folder
  3. Activate the plugin and add your API keys (app id and admin key) in
algolia-custom-integration
  1. Run the following command from the root of the plugin to install dependencies
php ./api-client/bin/install-dependencies-without-composer
  1. Add necessary scripts to functions.php in themes/paleo
  2. Add the following files to themes/paleo/js/vendor
algoliasearch-lite.umd
instantsearch.production.min
  1. (optional) Add the style file to themes/paleo/css/vendor satellite-min
  2. Add the following js file to themes/paleo/js and add your API keys (app id and admin key) algolia-search.js

How to update/index recipes?

  1. First navigate to the plugin located in ~/wp-content/plugins/algolia-custom-integration>
  2. Then run the command wp algolia reindex_all

How to add settings to Algolia

  1. Import settings to Algolia from
export-foodsocial-ORAVPJK7E7-1713149434

How to add to front-end

  1. From themes/paleo add code to
category-recipes.php
page-creators.php
  1. From plugins/jondaley-profiles add code to
users.php

Final notes

  1. This documentation was a little rushed so there are probably some bugs. You're probably better off following a tutorial from here. The main differences in code are found in the following files
wp-cli.php
users.php
category-recipes.php
functions.php
page-creators.php
algolia-search.js

Everything else is essentially downloaded or copied from Algolia's tutorial.