【发布时间】:2014-04-14 23:16:29
【问题描述】:
我有一个带有标签的 wordpress 页面,我想在其中一个页面中显示某个类别的帖子查询。
我有一个活跃的 li,比如:标签信息显示在哪里
<li class="tab-pane active" id="ert_pane1-4">
我想出的只是:
<?php
$tab-id= getElementById("ert_pane1-4");
echo $tab-id;
if($tab-id =='<li class="active">'){
query_posts('cat=1');
} endif;
?>)
我知道这听起来很简单,但我是 php 的新手,但要学习。
【问题讨论】:
标签: php wordpress tabs insert html-lists