Thord Daniel Hedengren - Smashing WordPress_ Beyond the Blog-Wiley (2014)
conditional tags and how you can control their output and actions by passing parameters. You’ll also take a look at themes and w ...
26 PART I • Getting Started with WordPress WORDPRESS AND PHP From here on, it will help if you know a little bit about PHP, as w ...
CHAPTER 2 • The WordPress Syntax 27 Figure 2-1: You’d better get used to browsing the WordPress Codex. THE WORDPRESS CORE Any go ...
28 PART I • Getting Started with WordPress The whole point, clearly, is that the WordPress core is untouchable. Don’t mess with ...
CHAPTER 2 • The WordPress Syntax 29 Figure 2-3: The same post from Figure 2-2, but viewed in the older Twenty Thirteen theme. Yo ...
30 PART I • Getting Started with WordPress gotten started on widgets yet, which are areas where you can drop elements from withi ...
CHAPTER 2 • The WordPress Syntax 31 USING THE TEMPLATE TAGS Although WordPress is written in PHP, it is in fact a framework in i ...
32 PART I • Getting Started with WordPress The include tags differ from other template tags in that what you’re doing is includi ...
CHAPTER 2 • The WordPress Syntax 33 PASSING MULTIPLE PARAMETERS TO A TEMPLATE TAG Outputting content with template tags is easy ...
34 PART I • Getting Started with WordPress FUNCTION AND QUERY-STRING STYLE ARGUMENTS Now look at something a bit more complicate ...
CHAPTER 2 • The WordPress Syntax 35 First, pass one argument to the parameter for wp_tag_cloud() using query-string style: <? ...
36 PART I • Getting Started with WordPress Simple enough to read and work with, right? Now compare that to the query-string styl ...
CHAPTER 2 • The WordPress Syntax 37 output format of the date (the first string in the parameter), what goes before the outputte ...
38 PART I • Getting Started with WordPress site. You can check for that with the conditional tag is_category() and then output a ...
CHAPTER 2 • The WordPress Syntax 39 Something often overlooked by beginners is that knowing where the visitors are, and in what ...
...
You need to understand the loop to create really cool WordPress sites. Although you won’t need to be an expert, you should grasp ...
42 PART I • Getting Started with WordPress UNDERSTANDING THE WORDPRESS LOOP The loop is the heart of WordPress, and it resides i ...
CHAPTER 3 • The Loop 43 Naturally, you’d want a more comprehensive error message than the one in this code, but that’s not the p ...
44 PART I • Getting Started with WordPress output within the loop, leaving the actual loop part (as described and defined in Cha ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf