随笔分类 -  WordPress

摘要:<?php/*As an editor(or and adminstrator) you can publish pending posts.When an editor sees pending posts,they have the options to read and edit the content before it goes live on the site.Admin and editors will see a "Publish" button when viewing pending posts.For admins,when they hover 阅读全文
posted @ 2012-11-16 23:21 sgsheg
摘要:bloginfo()是调用博客的信息的函数其中name是代表了它调用的是博客的标题这个名字是在option页面中设置的Weblog Titlebloginfo('url') 调用博客基本信息,具体是首页的地址或者URL<a> - 是一个用于添加链接的XHTML</a> 是链接的结束标签,否者网页不知道在那里结束链接.我们学到了1.规则,术语和wordpress主题的层式结构2.每个页面都有哪些部分组成3.如何安装你的主题4.如何调用博客的标题和把它做成一个链接5.如何调用博客的描述和如何把header和其他部分分开if(have_posts()) --- 阅读全文
posted @ 2012-11-16 22:47 sgsheg
摘要:headfirst wordpress+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Whether it's just you and your desire to let everyone know about your growing collection of hand-crocheted Star Wars figures,or a big company with hundreds of products,blogging let's anyone publish 阅读全文
posted @ 2012-11-16 22:47 sgsheg
摘要:Now that we know what CSS rules we need,let's get out Acme blog theme looking just like the main site.Clean out some unnecessary CSS rules.There are a few rules in the Acme site stylesheet that will cause problems with our blog layout.We need to strip those out so that our blog pages render corr 阅读全文
posted @ 2012-11-16 22:47 sgsheg
摘要:PHP+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++dirname(PHP4,PHP5)dirname - Returns parent directory's pathGiven a string containing the path of a file or directory , this function will return the parent directory's path.给定一个字符串,其中包含一个文件或目录的路径,这个函数会返回父母路的路 阅读全文
posted @ 2012-11-16 22:46 sgsheg