【发布时间】:2017-04-22 01:47:49
【问题描述】:
我正在尝试更改标题标签添加一个变量(产品品牌),但该变量没有显示出来。
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';
};
}
【问题讨论】: