【问题标题】:How to add the region in city page meta title tag in osclass?如何在osclass的城市页面元标题标签中添加区域?
【发布时间】:2016-06-30 15:37:51
【问题描述】:

如何在osclass的城市页面元标题标签中添加区域? 我希望在 Osclass 的城市页面的元标题标签中指定区域。 网站网址 - www.pluss.com/bangalore-c277405 我尝试在function.php中添加区域代码,但区域区域在城市页面源代码的元标题标记中显示为空白。 如果有人可以帮助添加要在元标题标签中显示的区域?

【问题讨论】:

  • “元标题”是指 HTML title 元素吗?

标签: php meta-tags osclass meta-title


【解决方案1】:

您必须向“meta_title_filter”添加一个过滤器。

osc_add_filter("meta_title_filter", function ($text) {
    // Do something with $text, search city name and add the region;
    return $text;
});

如果您有城市列表,则可以使用正则表达式来完成。目前,这就是 Osclass 提供的全部功能。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-02
    相关资源
    最近更新 更多