Please note: You will need to purchase and install FacetWP to use the filtering features that we’ve built into the theme.
The video above shows you how to configure your recipe index, but you can also follow the steps below to get your recipe index setup like our demo site!
Setup the Recipe Index Page
If you imported the demo content you will already have a page titled “Recipes” that is assigned the recipe index template. If this is the case for you, then you can scroll down to the next step, Creating Your Facets.
If you did not import the demo content then you’ll want to navigate to Pages>Add New and then assign a page title and select the Recipe Index template for the page.
We also recommend scrolling down to the layout settings and choosing the Secondary/Content layout.
Once you have the page template and layout assigned don’t forget to publish your page!
Note: If your posts and/or images are not showing up on the recipe index page this means you need to configure the content archives.
Creating Your Facets
On our demo site we are using the premium FacetWP Plugin for filtering options on the recipe index. You can purchase this plugin, download it, and then upload to your site. To upload a new plugin navigate to Plugins>Add New>Upload Plugin and then you will be prompted to choose the plugin file for upload to your site.
Once you have the FacetWP plugin installed you’ll need to add in your license key for the plugin to work. Navigate to Plugins>Installed Plugins and then click on the ‘Settings’ option below the FacetWP plugin. From this page you’ll click the ‘Settings’ option at the top and then enter in the license key, click ‘Activate,’ and then ‘Save Changes.’
Now you that you have the plugin installed and activated you can begin creating your facets! Navigate to Plugins>Installed Plugins and select the ‘Settings’ option below FacetWP. From this screen select ‘Facets.’ Then choose to ‘Add New’ and configure the facet as you’d like it to work. See below for the settings we’ve used for our own facets and also see the video at the beginning of this post for more specifics. Note: Each time you make an edit to an existing facet or create a new facet you’ll need to click on “Re-Index” and then “Save Changes” for the changes to be effective on the site.
Special Diets Facet
Adding the Facets to Your Recipe Index
Once you have your facets created you can add them to the recipe index by navigating to Appearance>Widgets and dragging and dropping a Cook’d Pro-Facet widget into the Recipe Index Sidebar widget area. You’ll add in one widget for each Facet you’d like to include in the Recipe Index sidebar area. Please see the image below for the settings we’ve used on our demo site:
Making it Work Without Using FacetWP
While we highly recommend using the FacetWP plugin to filter your recipes in the recipe index page, it’s not required and we understand that not everyone is able to use premium plugins. If you’d prefer not to use a premium plugin on your recipe index you can still setup the standard WordPress Search and Category widgets.
To set this up you’ll navigate to Appearance>Widgets and drag and drop the Search and Category widgets into the Recipe Index Sidebar widget area.
How to Use Multiple Recipe Index Pages/Exclude Categories from the Index
Beginning with version 1.0.1 of Cook’d you can include or exclude certain categories in your recipe index–that’s how you create multiple indexes!
- Navigate to the page you’d like to setup the recipe index template on
- Select the Recipe Index template from the Template dropdown menu in the Page Attributes settings
- Scroll down for the Recipe Index options settings and either choose which category you’d like to display on this page or put in the category ids for the categories you’d like to exclude.