Support » Plugin: ElasticPress » Not working with facetWP

  • The plugin throws an error when you are using FacetWP for facets on the website.
    Error message:
    PHP Catchable fatal error: Object of class WP_Post could not be converted to string in /dom10096/wp-content/plugins/facetwp/includes/class-facet.php on line 207

Viewing 2 replies - 1 through 2 (of 2 total)
  • Quick fix you can add to a custom plugin or themes function.php:

    add_filter( 'facetwp_pre_filtered_post_ids', my_fwp_filter_post_ids');
    function my_fwp_filter_post_ids($post_ids){
        if(!empty($post_ids) && is_object($post_ids[0])){
            $post_ids = wp_list_pluck($post_ids, 'ID');
        return $post_ids;

    @zaphod-42 awesome, thanks for sharing 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working with facetWP’ is closed to new replies.