共 6 篇文章 |
|
php $posts = get_posts( “category=4&numberposts=10″ ); ?><?php if( $posts ) : ?><ul><?php foreach( $posts as $post ) : setup_postdata( $post ); ?><li><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></... 阅87 转0 评0 公众公开 15-07-29 14:02 |
作者归档页 首先被考虑的是 author-{nicename}.php 别名模板(如作者用户名是 steven 那么对应的文件名就是 author-steven.php )如果没有别名模板则加载 author-{id}.php ID模板(如作者ID是 1 对应的文件名就是 author-1.php )如果ID模板没有则加载 author.php 通用作者模板如果通用作者模板也没有则加载 archive.php 通用归档模板如果连 ar... 阅47 转0 评0 公众公开 15-07-29 10:15 |
A Free Responsive Multi-Purpose WordPress Theme.A clean Timeline WordPress theme for free – DW Timeline. Inspired bythe timeline layout from Facebook, we took this innovative design andturn into a whole new WordPress timeline theme – DW Timeline.Flat Theme is the first ever free responsive wordpress theme thatcomes ... 阅2325 转0 评0 公众公开 15-07-28 17:26 |
wordpress独立页面模版制作教程 | wordpress教程网。 阅1272 转3 评0 公众公开 15-07-28 10:31 |
index.php style.css header.php footer.php sidebar.php.开始先将index.php文件另存为page.php,它将为我们页面模板服务。另存page.php模板为home.php,在WordPress里,home.php模板是用来列出我们的文章的,在我们的示例中,我们将它为新闻页面使用。现在留给我们剩下要做的一个是显示单独文章的模板,该模板非常类似我们的page.php模板,所... 阅2881 转27 评0 公众公开 15-07-27 17:49 |