Home Forums WC Vendors Free Support SEO Framework compatibility

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #65738
    David R
    Participant

    The following code ought to (or so I thought) prevent the SEO Framework header from being created on Vendor pages, but it fails due to the third condition returning false.

    add_action( 'init', function() {
    	if ( function_exists( 'the_seo_framework' ) && method_exists( 'WCV_Vendors', 'is_vendor_page' ) && WCV_Vendors::is_vendor_page() )
    		remove_action( 'wp_head', array( the_seo_framework(), 'html_output' ), 1 );
    }, 10 );

    So, WCV_Vendors::is_vendor_page() is returning false despite the method_exists check returning true. This is on a vendor page such as example.com/shops/best-vendor-ever

    Is the final condition being called too soon to return true? Is there a way to resolve this?

    #65744
    David R
    Participant

    After playing around for a while, firing it at get_header worked out.

    According to the author of The SEO Framework plugin, the incompatibility is because “the template system must be called through WordPress’ query, where they listen to query variables and then load the templates (rather than their [WCV’s] internal rewrite system).”

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.