Forums › Forums › Search & Filter Pro › FacetWP filters and Elementor Pro archive page not working
- This topic has 6 replies, 2 voices, and was last updated 4 years, 10 months ago by
Trevor.
-
Anonymous(Private) June 8, 2020 at 5:54 am #247771
Hi. Hoping for some help. I’ve been racking my mind all weekend.
Type of site: Personal Recipe\cooking blog
Issue: Can’t get FacetWP to render recipes on the same archive page as the FacetWP filters.
Specs: WordPress 5.4.1
Installed plugins: Admin columns, ACF, Anywhere Elementor, Elementor Pro, Classic Editor, Custom post Type UI, Ele Custom Skin, Elementor, JetSticky for Elementor, Login LockDown, Search WP, WPForms Lite, FacetWP (Disabled), FacetWP-Elementor (Disabled), Search & Filter Pro, Search & Filter – Elementor extension
I’ve created the following:
– A custom post type called “Recipes”.
– A Taxonomy called “Recipe Types”
– Multiple recipe types: Favorites, International, Vegetarian, etc.…
– An archive page using a custom skin and a loop template that displays ALL RECIPES (Recipes archive).Desire:
To have multiple FacetWP filters on the ALL RECIPES archive page to filter out recipes.SEARCH & FILTERS SETUP
General tab
Using Search & Filter, I created a new filter to search in the “Recipes” post.
Selected Taxonomies with the “Recipe Types (recipe_types).Display results tab:
Display results method: Custom
Template options (Results URL): I’ve set this to be the page URL of the ALL RECIPES archive page. = http://localhost:8888/recipes/recipes/Ajax : Not checked\enabled
WORDPRESS – ALL RECIPES Archive page setup
Just above the archive is a text field with [searchandfilter id=”1143″ action=”filter_next_query”]In the second column, to the right of the archive is the facetWP filter shortcode contained within a short code widget: [searchandfilter slug=”recipe-filter”]
Result
The filters correctly show on the page, and show the correct number of taxonomies; however, when you click on the checkbox (to filter), the page reloads but DOES NOT show the filtered results.
I’ve got 6 recipes on the ALL RECIPES page, and although you select a filter, all 6 continue to show.Note: Site is installed locally, but can host publicly if easier.
Thanks! AJ
Anonymous(Private) June 8, 2020 at 6:00 am #247772One last thing… this is the URL as a result of selecting the “Salsa” filter. Yet, the page does not render the only 1 salsa recipe.
http://localhost:8888/recipes/recipes/?_sft_recipe_types=salsa
Anonymous(Private) June 8, 2020 at 5:42 pm #247927Hey Trevor,
The filters show up and look great, and are correctly identifying the number of recipe types for each filter i.e Vegetarian (2) and Favorites (3), etc…
The issue is when you select the checkbox for a recipe type, the filter isn’t working. The page refreshes, but doesn’t properly show the appropriate type – All 6 recipes stay on the page.
I’ll push it to a live server later today.
-
AuthorPosts