TEC, Yoast SEO and FacetWP
-
I’m having issues with FacetWP when using TEC (6.0.6.1) and Yoast (19.2). The integration of TEC with Yoast is the issue. Without Yoast, all works okay.
I managed to track it down to the file:
/src/Events/Integrations/Plugins/WordPress_SEO/Events_Schema.php
Where in the
generate()
function is a call totribe_is_month()
. That istrue
on all pages for some reason. Everything that runs after that is causing issues (filtering not working) on pages with FacetWP.Exactly the same issue is mentioned is several issues in the following forum posts, where you wrote that
tribe_is_month()
is deprecated (which it is not as far as I can see):https://www.ads-software.com/support/topic/the-events-calendar-conflict-3/
https://www.ads-software.com/support/topic/error-after-upgrading-to-wp-6-0/#post-16150539
I can fix the issues by either removing the whole filter, as mentioned in this post, like this:
add_action( ‘wp’, ‘remove_yoast_filters’ ); function remove_yoast_filters() { remove_all_filters(‘wpseo_schema_graph_pieces’, false); }
Or by commenting out the offending code, like mentioned in this post.
Or by forcing
‘tribe_is_month’
tofalse
:add_filter( ‘tribe_is_month’, function( $context) { return false; } );
Can you please fix this intregration? And why is
tribe_is_month()
returningtrue
on pages that are not a Month view, and do not even contain tribe_events at all?
- The topic ‘TEC, Yoast SEO and FacetWP’ is closed to new replies.