taglist织梦调用自定义字段

[field:id runphp=”yes”]global $dsql;

$query = “SELECT 自定义字段 FROM `dede_模型表` WHERE aid=’@me’ “;
$dsql->Execute(‘自定义字段’,$query);
$row = $dsql->GetArray(‘自定义字段’);
$cpsurl .= $row[‘自定义字段’];
@me=$cpsurl;
[/field:id]
例如
 
[field:id runphp=”yes”]global $dsql;
$query = “SELECT body FROM `dede_addonarticle` WHERE aid=’@me’ “;
$dsql->Execute(‘body’,$query);
$row = $dsql->GetArray(‘body’);
$cpsurl .= $row[‘body’];
@me=$cpsurl;
[/field:id]