sjferwerda
Forum Replies Created
-
This has been solved. Updated to version 13.1 of wpseo-woocommerce. The Plugins screen did not alert us that there was an update for this plugin.
It appears that wpseo-woocommerce is using wpseo_openparagraph. Please correct me if I’m mistaken or fix if I’m correct. We are running 14.1 of Yoast SEO and 11.8 of Yoast SEO: WooCommerce. Notices go away when wpseo-woocommerce is deactivated.
Thanks!
Grep results of /wp-content/plugins/
./plugins/wpseo-woocommerce/wpseo-woocommerce.php: add_filter( ‘wpseo_opengraph_type’, array( $this, ‘return_type_product’ ) );
./plugins/wpseo-woocommerce/wpseo-woocommerce.php: add_filter( ‘wpseo_opengraph_desc’, array( $this, ‘og_desc_enhancement’ ) );
./plugins/wpseo-woocommerce/wpseo-woocommerce.php: add_action( ‘wpseo_opengraph’, array( $this, ‘og_enhancement’ ), 50 );Also seeing:
PHP Deprecated: class-opengraph-image.php- This reply was modified 5 years, 10 months ago by sjferwerda.
- This reply was modified 5 years, 10 months ago by sjferwerda. Reason: Solved
Forum: Plugins
In reply to: [XML Sitemap & Google News] Keywords filterI guess one might be able to use is_feed( $feeds ) or $wp_query->is_feed( $feeds ) where $feeds is the feed type ‘sitemap-news’. However, is_sitemap() would probably be more idiot proof.
- This reply was modified 8 years, 4 months ago by sjferwerda.
Forum: Plugins
In reply to: [XML Sitemap & Google News] Keywords filterSounds good, we have control over our server environment, so I think we should be good checking against $_SERVER[‘REQUEST_URI’].
Thanks again! 🙂
Forum: Plugins
In reply to: [XML Sitemap & Google News] Keywords filterThanks @ravanh! I’m testing the following solution and it appears to be working. Not sure what the best way is to target the sitemap-news feed/page but for now I’m using if ( strpos( $_SERVER[‘REQUEST_URI’], ‘sitemap-news.xml’ ) !== false )
public function stripSitemapNewsPriorityTerms( $terms, $id, $taxonomy ) { if ( strpos( $_SERVER['REQUEST_URI'], 'sitemap-news.xml' ) !== false ) { $priortiyArr = ['priority', 'main-carousel', 'main-headline', 'carousel', 'headline', 'trending']; foreach ( $terms as $key => $term ) { if ( in_array( $term->slug, $priortiyArr ) ) { unset( $terms[$key] ); } } } return $terms; } add_filter( 'get_the_terms', array( $this, 'stripSitemapNewsPriorityTerms' ), 10, 3 );Forum: Plugins
In reply to: [XML Sitemap & Google News] Keywords filterAwesome, thanks for the quick reply and suggestion. I’ll give it a shot and then follow up with our solution if we can get it to work.
Forum: Themes and Templates
In reply to: Excerpt and More TagExact same question.
http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more does not appear to be working in 3.0, unless we are overlooking something.
Thanks!