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
1.新建一个类 HotkeyHelper using System; using System.Runtime.InteropServices; using System.Windows.Forms; using System.Collections; namespace 黄聪 { public delegate void HotkeyEventHandler(int hotKeyID); public class HotkeyHelper : IMessageFilter { public
原文出自: http://themeshaper.com/2012/10/22/the-themeshaper-wordpress-theme-tutorial-2nd-edition/ THE THEMESHAPER WORDPRESS THEME TUTORIAL: 2ND EDITION Preface Many of you have written or commented to tell us how much you liked Ian Stewart’s original tut
What is “Theme Sense”? What is “Theme Sense”? Theme Sense is 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 en
开启feed功能 步骤一:在模版文件的<head></head>元素中添加wp_head()函数,且wp_head()函数要放在</head>标签之前,而且紧邻</head>标签,如: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&
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.php. Our theme will have one multipurpose archive.p
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, again. As a refresher, here's single.php. <?php
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 ensure that our theme follows best security practi
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 code and meaningful code. That is, using as little m
THE WORDPRESS THEME HEADER TEMPLATE Now we get into the nitty-gritty: building up your header.php and 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 ki
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 b
While the most minimal of WordPress Themes really only need an index.php template and a style.css file (or just the style file if it’s a Child Theme) most need something a little more solid. Let’s create the directories and files that will make up ou