摘要: What archive.php does (and all its related templates) is show posts based on a select criteria. A date range, or posts by a certain author, a category, or a tag. So, basically, it’s a lot like index.p... 阅读全文
posted @ 2013-10-25 17:08 songix 阅读(493) 评论(0) 推荐(0) 编辑
摘要: The Search Template and The Page Template are vital to any complete WordPress Theme. And they’re both really easy to code.For both of these Templates, we’ll start with our template-template,single.php... 阅读全文
posted @ 2013-10-25 16:58 songix 阅读(332) 评论(0) 推荐(0) 编辑
摘要: I hate the Comments Template. There, I said it. It can be a confusing mess. Luckily for you, I’ve sorted it out. Confusing still, yes. But sorted out. For this tutorial on the Comments Template, I’m b... 阅读全文
posted @ 2013-10-25 16:49 songix 阅读(499) 评论(0) 推荐(0) 编辑
摘要: We’re just about ready to start building our theme’s template files. Before we do this, however, it’s time for a quick briefing on data validation and sanitation, an important procedure we’ll take to ... 阅读全文
posted @ 2013-10-25 16:39 songix 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Now we’re starting to get into the real meat of WordPress Theme development: coding the HTML structure. The Goals of Any HTML Structure When coding a web site, you should have 2 goals in mind: lean co... 阅读全文
posted @ 2013-10-25 16:30 songix 阅读(247) 评论(0) 推荐(0) 编辑
摘要: You’ve built an index of all your posts, now you need to create a template to frame each piece of content (or missing content) on its own. In this lesson, you’ll create templates for single posts, post attachments, and 404 error pages.The Template for TemplatesThe structure of single.php (and almost 阅读全文
posted @ 2013-10-25 15:46 songix 阅读(498) 评论(0) 推荐(0) 编辑
摘要: THE WORDPRESS THEME HEADER TEMPLATENow we get into the nitty-gritty:building up yourheader.phpand validating your theme with an HTML Doctype. There’ll be a lot of PHP in this lesson, but don’t despair. We’re also going to do two essential (and kinda neat) search engine optimization techniques and ad 阅读全文
posted @ 2013-10-25 13:37 songix 阅读(286) 评论(0) 推荐(0) 编辑
摘要: We’ve got a file structure in place, now let’s start adding things to them!First, we’re going to add some PHP functions to our theme. These functions will serve a variety of purposes, including:adding support for WordPress features such as custom backgrounds, headers, post formats, etcsetting up the 阅读全文
posted @ 2013-10-25 13:27 songix 阅读(284) 评论(0) 推荐(0) 编辑
摘要: While the most minimalof WordPress Themes really only need an index.php template and a style.css file (or just the style file if it’s aChild Theme) most need something a little more solid.Let’s create the directories and files that will make up our _s-based theme, Shape. Make a folder in wp-content. 阅读全文
posted @ 2013-10-25 13:18 songix 阅读(875) 评论(0) 推荐(0) 编辑
摘要: Before we get started building any WordPress Theme, we’re going to need to get our development tools in place. In this post, we’ll run through the best of the best and build ourselves a cross-platform WordPress Theme test environment that would do a professional Theme developer proud.着手构建WordPress主题 阅读全文
posted @ 2013-10-25 11:52 songix 阅读(380) 评论(0) 推荐(0) 编辑
摘要: What is “Theme Sense”?What is “Theme Sense”?Theme Senseis an intuitive understanding of WordPress themes: the relationship between the files that make up a theme, and how those files fit in with WordPress. Theme Sense is what you’ll have at the end of this tutorial. 什么是主题感(Theme Sense)?主题感就是对WordPre 阅读全文
posted @ 2013-10-25 11:15 songix 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 原文出自: http://themeshaper.com/2012/10/22/the-themeshaper-wordpress-theme-tutorial-2nd-edition/THE THEMESHAPER WORDPRESS THEME TUTORIAL: 2ND EDITIONPrefaceMany of you have written or commented to tell us how much you liked Ian Stewart’s original tutorial, “How To Create a WordPress Theme: The Ultimate 阅读全文
posted @ 2013-10-25 10:57 songix 阅读(215) 评论(0) 推荐(0) 编辑