




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Wp百科网模板制Wp百科网模板制作1、wordpress模板结构分 2、制作一个可以运行的wordpress,修改 3、制作出结构 4、修改 5、制作 6、制作 8、制作 1、wordpress模板结构分析4042、制作一个可以运行的wordpress,修改制作一个最简单的,只需要两个文件,index.php和index.php第三步,给style.css添 信第四步:把上传到空间中wordpress安装路径,wp-content/themes/下面,这里的文第五步,在wordpress启用先给style.css添 信ThemeName:wordpresstheme01ThemeURI:httpDescription:asimplebolgthemeAuthor:xixiAuthorURI:httpVersion:1.0Tags:white,blog,liweihui,Style.css路径调用:<?phpbloginfo'stylesheet_urlindex.php拆分成header.php,footer.phpsidebar.phhp<?php<?php<?php4');?>获取主页路径:<?phpechoget_option('home<metahttp-equiv="Content-Type"content="text/html;charset=<?phpbloginfo('charset');?>"<?phpwp_head();<title><?phpif(is_home()||is_search()){bloginfo('name');}else{wp_title('');print"-";bloginfo('name');}?></title><?php 分 5);?><li><ahref="<?phpthe_permalink();?>"><?phpthe_title();<?php<li><ahref="<?phpthe_permalink();?>"><?phpthe_title();<?php$post_num10;//$args='post_password'=>'post_status''publish',//只选公开的文章'postnot_in'array($post->ID),//排除当前文章'caller_get_posts'=>1,//排除置頂文章.'orderby'comment_count',//依評論數排序.'posts_per_page'=>$post_num$query_posts=newwhile($query_posts->have_posts()){$query_posts->the_post();<li><ahref="<?phpthe_permalink();?>"title="<?phpthe_title();<?phpthe_title();<?php}<?phpwp_get_archives('type=monthly');分 友情6<?phpif(have_posts()):<?phpwhile(have_posts()):the_post();<?phpendwhile;<?phpelse:<?phpendif;标题:<ahref="<?phpthe_permalinkphpthe_title_attribute<?phpthe_content("ReadMore..."); <?phpthe_excerpt("ReadMore...");日期:<?phpthe_time('Fd,Y<?phpthe_time('m-d')<?php评论调用:<?phpcomments_number('NoComment'1CommentComments文章所属分类::<?phpthe_category(',')single.php中调用<?phpendwhile和<?phpelse<?phpcomments_temte();8Page.phpsingle.phparchive.phpindex.php9if(function_exists('register_sidebar')'before_widget'=>'<divclass="sidebox"> 'after_widget'=>'</div>','before_title'=>'<h2>','after_title'=>'</h2>',<?phpif(||!dynamic_sidebar()):?>Sidebar最下面,添加<?phpendif10 class="next">«上一页 next_posts_link('<spanclass="previous">下一页»</span>')?><metahttp-equiv="Content-Type"content="text/html;charset=<?phpbloginfo('charset');?>"<?phpwp_head();<title><?phpif(is_home()||is_
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 口腔正畸正畸治疗合同
- 商品种类-产品分类表格
- 解决实际问题的会议纪要
- 全新食品原料供货合同
- 客户服务反馈表格-服务满意度调查
- 房地产战略合作协议书
- 2025年安徽工业职业技术学院单招职业适应性考试题库及参考答案1套
- 2025年工业清新剂合作协议书
- 旅游目的地文化与景点知识练习题
- 产品召回记录表
- 移动欠费催缴业务方案
- 大学计算机基础教程第二版(Windows10)全套教学课件
- 人行道开挖施工方案简单版
- 《计算机安全基础》课件
- 住房公积金贷款申请书
- 多物理场耦合与协同仿真技术
- 监理人员的节后复工安全培训考试试题
- 旅游政策与法规教案
- 工程地质与地基基础-课件
- 第2课-多民族的交往与中华文化的浸润课件
- 列车调度指挥高职PPT完整全套教学课件
评论
0/150
提交评论