• Resolved trevolutionary

    (@jkdsouljah)


    Hi Bill

    In the support thread here, I found a post where you mentioned that the best way to implement category filtering on the frontend is to use FacetWP, and linked to this tutorial: https://displayposts.com/2019/04/20/facetwp-support/

    I’ve followed the described steps but can’t really get it working. The embedded video link seems to be broken as well, so maybe I’m missing something.

    Grateful for your advice.

    Trevor

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Hmm, not sure why the video has disappeared, but yes, I’d recommend FacetWP for faceted filtering of results.

    If you add the PHP code at the bottom to a Code Snippets plugin or your theme’s functions.php file, you can then include facetwp="true" in your Display Posts shortcode which will tell FacetWP to target that query.

    You would add your FacetWP filter shortcodes on the same page. So the content of your page might be:

    [facetwp facet=”filter_by_category”]

    [display-posts facetwp=”true”]

    I hope that helps.

    Thread Starter trevolutionary

    (@jkdsouljah)

    Ah, that does help. Thanks so much and it worked – with one caveat, for which I’m not sure if you might know of a workaround. It works when there is just one instance of a Display Posts shortcode running on the page. However, I have a page structure separated into two or three sections that each run their own Display Posts shortcode. When there is more than one instance on the same page, it basically got confused and didn’t work. Is there anything I can do?

    Thanks again
    Trevor

    Plugin Author Bill Erickson

    (@billerickson)

    Unfortunately no, FacetWP only works with a single query on the page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FacetWP’ is closed to new replies.