
<div id="content" class="narrowcolumn">
<php if (have_posts()) : while (have_posts()) : the_post(); >
<div class="post" id="post-<php the_ID(); >">
<h2><php the_title(); ></h2>
<div class="entry">
<php the_content('<p class="serif">Read the rest of this page »</p>'); >
<php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); >
</div>
</div>
<php endwhile; endif; >
<!-- Category Archive Start -->
<!-- Category Archive End -->
</div>
你想问 “如果 L=1的时候框架
<div id="1" >标题</div>
<div id="1">文章简介</div>
如果 L=2的时候框架会变成
<div id="2">标题</div>
<div id="2">文章简介</div>”
如果是的话,下面这样写不久行了么?
<div id="<php echo $L >" >标题</div>
<div id=""<php echo $L >"">文章简介</div>
以上就是关于如何用php调用wordpress中文章模块的文章标题列表到我的单页站上。全部的内容,包括:如何用php调用wordpress中文章模块的文章标题列表到我的单页站上。、模板中如何调用php实现多一个文章列表切换多框架、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)