12
Displaying Content with Widgets and Template Tags
In This Chapter
Looking at the common template tags
Adding new widget areas to a theme
Creating templates to handle specific content display
Adding theme support for specific features
This chapter gives you the lowdown on ways you can control how content appears on your site. When you create a WordPress theme, you use a combination of template tags to display certain types of content such as blog posts, navigation menus, page content, archive links, and so on. This chapter takes a look at common template tags that tell WordPress what information you want to show on your site.
As WordPress becomes more intuitive and user-friendly, I find that in several areas you don’t really need to use template tags or code to get the results you need; instead, you can add new widget areas to your theme, which enables you to use the drag-and-drop widget feature to include different types of content and/or navigation on your website. If your theme doesn’t have widget areas in all the places where you need them, this chapter shows you how to add ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access