渔出海
作者:
在
在制作wordpress模板时常会用到的,wordpress调用当前页面ID代码。
<?php global $post; $id = $post -> ID; echo $id; ?>
在需要的位置上这段代码,即可显示出该页面的ID。