趙健的技術筆記

如何實現DMSGuestbook在文章頁面中呼叫

技術 約 415 字 · 2 分鐘 - 次閱讀
<?php if (have_posts()) : while (have_posts()) : the_post(); ?><?php the_content(''); ?>
<?php endwhile; endif; ?>

通過wordpress頁面實現DMSGuestbook留言板呼叫方法

<div><?php if (have_posts()) : while (have_posts()) : the_post(); ?></div>
<div><?php the_content(''); ?></div>
<div><?php endwhile; endif; //正常呼叫頁面中的內容?></div>
<div><?php DMSGuestbook("$id"); //通過DMSGuestbook()函數在頁面中呼叫留言板或者評論,id為頁面的id ?></div>
分享:

評論