Start learning with our library of video tutorials taught by experts. Get started

Create an Online Portfolio with WordPress

Creating site architecture


From:

Create an Online Portfolio with WordPress

with Morten Rand-Hendriksen

Video: Creating site architecture

The purpose of a portfolio site is to showcase different kinds of work in an easily accessible way, both for the person who owns the site and for those who visit it. Because of this the portfolio site we will be dealing with different types of content in different places. To make sense of it all, creating a site architecture enables a designer or developer to think through all the different elements in advance and figure out what needs to be built and where these different components should be housed. But before we can build the site architecture, let's look at how WordPress handles contents by default.
Expand all | Collapse all
  1. 6m 28s
    1. Welcome
      58s
    2. Using the exercise files
      3m 54s
    3. Using the code snippets file
      1m 36s
  2. 8m 31s
    1. What is an online portfolio?
      2m 43s
    2. Tour of the finished project
      3m 15s
    3. Setting up a WordPress development environment
      2m 33s
  3. 16m 10s
    1. Creating site architecture
      5m 1s
    2. Creating a child theme
      6m 7s
    3. Creating an external file to manage functions separately from the theme
      5m 2s
  4. 25m 26s
    1. What is a custom post type?
      2m 14s
    2. Setting up a custom post type
      6m 39s
    3. Adding advanced variables to the custom post type
      3m 35s
    4. Advanced custom post type functionalities
      4m 29s
    5. Changing the menu position of the custom post type
      3m 19s
    6. Adding a custom post type icon
      5m 10s
  5. 22m 8s
    1. What are custom taxonomies?
      3m 34s
    2. Setting up a basic custom taxonomy
      2m 52s
    3. Hooking a custom taxonomy to a post type
      3m 13s
    4. Adding advanced variables to a custom taxonomy
      3m 9s
    5. Using hierarchical and nonhierarchical custom taxonomies
      5m 54s
    6. Using custom taxonomies in admin
      3m 26s
  6. 25m 40s
    1. Populating content into the custom post types
      10m 54s
    2. Uploading videos to YouTube
      2m 22s
    3. Embedding YouTube videos in a custom post type
      4m 23s
    4. Uploading videos to WordPress
      8m 1s
  7. 39m 47s
    1. Creating custom post type templates
      6m 50s
    2. Adding taxonomy info to the custom post type template
      9m 13s
    3. Creating conditional custom taxonomy links
      4m 46s
    4. Handling multiple post type templates: Individual templates
      6m 25s
    5. Handling multiple post type templates: Consolidating everything in one file
      6m 21s
    6. Handling multiple post type templates: Making custom post types the default
      6m 12s
  8. 15m 23s
    1. Creating an index page for a custom post type
      8m 10s
    2. Creating a custom taxonomy index page
      7m 13s
  9. 12m 3s
    1. Creating a custom footer sidebar template
      6m 58s
    2. Displaying a list of links to the latest custom post type posts
      5m 5s
  10. 14m 58s
    1. Creating static pages for the front and the blog
      4m 54s
    2. Populating the menu with new index pages
      4m 52s
    3. Creating a contact page with a contact form
      5m 12s
  11. 5m 55s
    1. Including the abstraction layer in other stock themes
      5m 55s
  12. 1m 22s
    1. Next steps
      1m 22s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Create an Online Portfolio with WordPress
3h 13m Advanced Sep 23, 2011

Viewers: in countries Watching now:

Learn how to build an advanced portfolio site that showcases various types of content using the free open-source application WordPress. Author Morten Rand-Hendriksen demonstrates creating custom post types, differentiating and classifying content with custom taxonomies, and working with custom post templates. The course also shows how to embed YouTube videos, build index pages, display the latest posts from different custom post types, and hook custom post types into separate themes. Exercise files accompany with the course.

Topics include:
  • Exploring online portfolios
  • Creating the site architecture
  • Incorporating advanced custom post type functionalities
  • Hooking a custom taxonomy to a post type
  • Understanding how hierarchy relates to taxonomies
  • Populating content into custom post types
  • Handling multiple post type templates
  • Displaying a list of links to the latest custom post type posts
  • Building static pages for the front and the blog
  • Creating a contact page with a contact form
Subjects:
Design Web CMS Web Design Projects
Software:
WordPress
Author:
Morten Rand-Hendriksen

Creating site architecture

The purpose of a portfolio site is to showcase different kinds of work in an easily accessible way, both for the person who owns the site and for those who visit it. Because of this the portfolio site we will be dealing with different types of content in different places. To make sense of it all, creating a site architecture enables a designer or developer to think through all the different elements in advance and figure out what needs to be built and where these different components should be housed. But before we can build the site architecture, let's look at how WordPress handles contents by default.

When installed, WordPress has two main content types: posts, which is the regular blog posts, and pages. The posts are organized by category, and further organized by tag, and they are usually displayed in reverse chronological order, so the newest post first and then all the older ones underneath it. You can also add custom fields to posts and they sometimes come with the featured image functionality, and most of them have comments. In contrast, pages are independent elements that don't really relate to each other, except for parent-child relationships.

So you can make one page and then underneath it you can have a child of that page. Pages also default to the main menu, unless you tell the site otherwise, and with pages you can have custom page templates so you can display different pages in different ways. Pages also have some common features with posts, including the featured image functionality and comments, but pages do not have custom fields. Taking into consideration the WordPress only has these two content types, posts and pages, we can apply them to this standard online portfolio item structure.

You see we have a Home page, a Bio/About page, a Portfolio with some sub items, including Photos, Videos, Articles, and then a Contact page and a Blog. If we take the standard structure, you'll see that the Home page and Bio/About Page are standard pages, and so is the Contact page, and then the Blog is the regular blog post. But what happens to this content in the middle, the Portfolio, where you have the Photos, Videos, and Articles? That's the general question that we're going to answer in this course and I will teach you how to handle it.

The obvious and simple solution to this issue is to create a new category underneath the Blog called Portfolio, and then give that Portfolio category subcategories for each of your items. But this is really clunky, because now you have all of your items, regardless of what kind of content it is, listed under the Blog. So if you want to display the blog without these items, you have to write a huge pile of code just to exclude these items and then you have to create a new template to include only those items.

A better solution is to create new custom post types for each of these different types of content. That way the blog lives on its own with its own categories and you'll have a new custom post type for each of the new types of items. So you'll have a custom post type for videos, one for photos, and one for articles. What's really cool about this is once you have custom post types, you can assign specific types of categories or taxonomies to each of the post types so that they're all different. That means you can create organizational tools that only relate to each of the individual post types and you can organize each post type item in relation to the other items on their own.

So using custom post pipes and custom paxonomies, you can create a site that's much easier to navigate and has very clear firewalls between different types of content. Now let's look at a concrete example of how this would work. Throughout this course we'll be building a site for an imaginary chef. The site is called Culinary Artistry. This chef has four types of content he wants to display. He has his regular blog, but he also has recipes, photos, and videos. And under Recipes, Photos, and Videos, he has different kinds of ways of organizing the content.

For Recipes, he has Meal Type, Ingredients, Difficulty, Time, and Portions. Whereas in Photos he has Meal Type, Ingredients, and Technique for the photography, and in Videos he has Meal Type, Ingredients, and Video Type. You'll notice that some of these categories, or custom taxonomies as they are called, are the same across all three post types, while others are individual for each post type. This really harnesses the true power of using custom post iypes. You can hook them together and relate them to each other using some taxonomies and then you can still keep them separate for others.

So what we're seeing here is the general site architecture for the site we're going to be creating. We'll build three new post types, Recipes, Photos, and Videos, and under them create a set of new custom taxonomies, so we can organize the content in a logical way. With a basic site architecture drawn up before the real work begins, you have a clear plan of what needs to be done and how that information is going to be organized. This makes the actual process of building the course site much easier.

There are currently no FAQs about Create an Online Portfolio with WordPress.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create an Online Portfolio with WordPress.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked