1
変数(商品ブランド)を追加するタイトルタグを変更しようとしていますが、変数が表示されません。タイトルタグをフィルタwpseo_titleで変更する
add_filter('wpseo_title', 'filter_product_wpseo_title');
function filter_product_wpseo_title() {
return 'hello'. $_GET[$mysite_slugs['product-brand']] .'hello';
};
}
もこれを試みたが、運
add_filter('wpseo_title', 'filter_product_wpseo_title');
function filter_product_wpseo_title() {
$productbrand = $_GET[$mysite_slugs['product-brand']];
return 'hello'. $productbrand .'hello';
};
}