CHAPTER 4 • WordPress Theme Essentials 79
whatever functionality he or she wants, either from the available widgets in WordPress by
default or widgets added by plugins. The right column in this theme is a widget area, which
means that you need to make some changes:
The dummy content has been replaced by a PHP check that looks for a sidebar called Right
column, but should it be empty, an li with some instructive text is outputted.
For sidebars to work, you need to declare them in functions.php. You’ll do that in a bit; for
now this is all you need with sidebar.php.
THE CONTENT FLOW, USING INDEX.PHP
It’s time to get the actual content under control. Figure 4-6 shows the content flow from the
HTML design, which in this case is just two posts but should be able to be a bunch of posts,
obv i ou s ly.
Figure 4-6: The content flow is destined for index.php, and more!