产品模块分类下的地区分类搜索,,这样全国区域就能调取出来,适合全国推广产品的seo步骤,调取一级地区下的二级地区方法及标签:
{php $sqareas=get_mainarea(0);} {loop $sqareas $k $v} <li {if $k > 12} class="hide"{/if}><a href="{$MOD[linkurl]}search-htm-areaid-{$v[areaid]}-catid-{$catid}.html" title="{$v[areaname]}{$seo_title}" target="_blank">{$v[areaname]}</a></li> {php $smareas=get_mainarea($v[‘areaid‘]);} {loop $smareas $i $t} <li {if $k > 1} class="hide"{/if}><a href="{$MOD[linkurl]}search-htm-areaid-{$v[areaid]}-catid-{$catid}.html" title="{$v[areaname]}{$seo_title}" target="_blank">{$t[areaname]}</a></li> {/loop} {/loop}
效果地址:http://www.sdfymj.com/sell/list-134.html
原文地址:https://www.cnblogs.com/68xi/p/12252247.html
时间: 2024-10-14 22:15:02