<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

内容页调用SEO标题的方法

时间:2020-12-15

内容页调用SEO标题:在<title></title>之间加入以下代码:
复制代码{dede:field name='typeid' runphp='yes'}
$id=@me;
global $dsql;
$sql="select seotitle from arctype where id=$id";
$row=$dsql->getOne($sql);
@me=$row["seotitle"];
{/dede:field}

文章扩展:

内容页调用栏目描述:
把默认的<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
改成:复制代码<meta name="description" content="{dede:field name='typeid' runphp='yes'}
$id=@me;
global $dsql;
$sql="select description from arctype where id=$id";
$row=$dsql->getOne($sql);
@me=$row["description"];
{/dede:field}" />



内容页调用栏目关键字:
把默认的<meta name="keywords" content="{dede:field.keywords/}" />
改成:复制代码<meta name="keywords" content="{dede:field name='typeid' runphp='yes'}
$id=@me;
global $dsql;
$sql="select keywords from arctype where id=$id";
$row=$dsql->getOne($sql);
@me=$row["keywords"];
{/dede:field}" />

0
首页
案例
关于
联系