WordPress Chinese Forums's Archiver

loveyousan 发表于 2008-11-1 00:44

调用指定page页面的内容要什么代码

请教。。调用指定page页面的内容要什么代码???不是调用指定日志哦~~~~

ijkl383 发表于 2008-11-6 13:59

消费机

**** 作者被禁止或删除 内容自动屏蔽 ****

hedy 发表于 2008-11-6 14:06

楼上这个是嘛东西?:evil

马甲 发表于 2008-11-6 14:28

<?php
// 返回一篇ID为5的文章
query_posts('page_id=9');
      
global $more;
//将 $更多的设置为0以得到文章的第一部分
$more = 0;

// the Loop
while (have_posts()) : the_post();
  //文章的内容
  the_content('');
endwhile;
?>

scutdk 发表于 2008-11-6 14:42

学习了

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.