Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,900 courses, including more Web and personalized recommendations.Start Your Free Trial Now
- View Offline
- Understanding development environment requirements
- Working with existing WordPress content
- Handling standard pages
- Managing full posts
- Coding a basic template
- Adding a custom sidebar
- Working with WordPress functions
- Inserting PHP code in posts
- Including a recordset
- Outputting data
- Linking to dynamic pages
Skill Level Intermediate
Okay. You're working with a client who really wants to take control of their new web site's content, and you think WordPress might be the way to go. So what are your options? In this chapter, I'll give you an overview of the different possibilities for handling content in a WordPress-based site. Other than material pulled in from outside a site, there are basically two types of content: user-contributed and developer-created. We'll focus on user-contributed in this video. The best known type of user- contributed content are blog posts.
A blog post is entered through the WordPress editor, or the user enters a title and they post content as well as assigning tags and categories. Once the blog post is published, additional meta information, like the author's name and date of publication, are automatically added. WordPress users can also create new pages through the dashboard's Pages interface. Like blogs, a page has a title and content. You can also assign a pager a template to provide a different look and feel or organize the pages on the site.
You can create WordPress pages in the standard fashion, which is appropriate when you've got static content that needs to be updated infrequently. Or you can create your page content as a post. This works well when you want to use a different template for specific content. I'll show you how to set up this technique in the "Implementing post-driven pages" movie, found in Chapter 2. The final way that you can bring user- contributed content into a WordPress site is by setting up additional database tables and entering the information through a separate admin interface.
This strategy is covered in the Chapter 5 movie, "Adding MySQL database output." As you're developing your site map, it's a good idea to decide which pages will be created using what strategy, what pages incorporate blog posts, which ones are standard custom pages, which are post-driven pages, and which include database-driven content.