Title: Dynamic post filter FacedWP
Last modified: February 20, 2023

---

# Dynamic post filter FacedWP

 *  Resolved [spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/)
 * (@spatsurastellarsoft)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/dynamic-post-filter-facedwp/)
 * Hi, I would like to clarify if it is possible to process filters like how FacedWP
   works [https://facetwp.com/demo/cars/](https://facetwp.com/demo/cars/) to make
   them work on a static site, as now I saw that the search for example is integrated
   through “**Fuse.js**“, but what about the content that the page is filtered, 
   for example there are some posts and filtered by category or tag or sorted by
   date, what approach is better to use to implement it, can you advise?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdynamic-post-filter-facedwp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/dynamic-post-filter-facedwp/#post-16498482)
 * Hey [@spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/),
 * thanks for reaching out!
 * FacetWP and Simply Static don’t work together (I contacted them a while ago) 
   because they need ajax to process the results (which isn’t available on a static
   website).
 * I haven’t found a plugin that handles that well on a static website right now,
   but I’m happy to update the post once something is available!
 * Best regards,
   Patrick
 *  Thread Starter [spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/)
 * (@spatsurastellarsoft)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/dynamic-post-filter-facedwp/#post-16498670)
 * Hello [@patrickposner](https://wordpress.org/support/users/patrickposner/)
 * Thank you for the response)), yes I am now developing a custom solution that 
   will help generate additional data in JSON file which is generated for search
   through **Fuse.js** as the data that is there is not enough for the formation
   of posts or filtering, for additional data I use this filter in the plugin PRO“
   ssp_search_index_item”, so that there can be collected in JSON file all that 
   is needed to render posts and filter them. I would like to ask you to add some
   more hooks to the plugin, for example **I couldn’t find suitable hook to generate
   my JSON file before everything will be collected in .zip **archive, in this function“
   wp-content\plugins\simply-static\src\tasks\class-ss-create-zip-archive.php”
 * Here is a hook that is called after the creation of
   **do_action(‘s_zip_file_created’,
   $zip_archive );**
 * But it would be cool to have a **hook before making an archive after all links
   are processed and as arguments path to “working directory”** with a folder and
   files would be passed there in parameters, so there could be a hook for it, because
   I haven’t found it either…
 * So now I’m redefining in Static site JS which is responsible for processing when
   clicking on FacedWP elements
 * [https://prnt.sc/rctrRpcmj6RP](https://prnt.sc/rctrRpcmj6RP)
 * [https://prnt.sc/q2n0ICImzmJu](https://prnt.sc/q2n0ICImzmJu)
 * [https://prnt.sc/SOQha8EnLRVS](https://prnt.sc/SOQha8EnLRVS)
 *  Plugin Author [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/dynamic-post-filter-facedwp/#post-16498844)
 * Hey [@spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/),
 * thanks for your reply! Using the filter _ssp\_search\_index\_item_ to extend 
   the results is the perfect way to handle that!
 * Hooks:
 * Recommendations for new hooks are always appreciated! However, there is a hook
   used by the Fuse.js integration itself that may already work for you. It’s called
   _ss\_finished\_fetching\_pages_.
 * It’s executed after fetching all pages/files but before the ZIP file is created.
   It’s used in Simply Static Pro to add the config files (also the JSON file) before
   finishing the process.
 * Best regards,
 * Patrick
 *  Thread Starter [spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/)
 * (@spatsurastellarsoft)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/dynamic-post-filter-facedwp/#post-16498857)
 * Yes, I found this hook “**ss_finished_fetching_pages**” but the problem is that**
   it does not pass the parameters of a folder (temporary)**, the path to which 
   the generated files before packaging in .zip or copying to another location (
   if another folder is selected), through that hook I can not generate our JSON
   file, as there is no path of the working directory and temporary folder
 * [https://prnt.sc/TbDdgUxNUQjd](https://prnt.sc/TbDdgUxNUQjd)
 *  Thread Starter [spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/)
 * (@spatsurastellarsoft)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/dynamic-post-filter-facedwp/#post-16662386)
 * Hello @patrickposner
 * So can you please help me with this question ?, i need hook that provide to me
   ability create file before those all files will be packed to *.zip
    -  This reply was modified 3 years, 1 month ago by [spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/).

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

The topic ‘Dynamic post filter FacedWP’ is closed to new replies.

 * ![](https://ps.w.org/simply-static/assets/icon-256x256.png?rev=2443263)
 * [Simply Static - The Static Site Generator](https://wordpress.org/plugins/simply-static/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-static/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-static/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-static/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-static/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-static/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [spatsurastellarsoft](https://wordpress.org/support/users/spatsurastellarsoft/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/dynamic-post-filter-facedwp/#post-16662386)
 * Status: resolved