Created
February 6, 2012 12:15
-
-
Save mikejolley/1751818 to your computer and use it in GitHub Desktop.
WooCommerce - WooSEO for the shop page/custom post type archive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woo_title', 'woocommerce_shop_page_title'); | |
function woocommerce_shop_page_title( $title ) { | |
if ( is_post_type_archive('product') ) { | |
$title = get_post_meta(woocommerce_get_page_id('shop'), 'seo_title', true); | |
} | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment