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

Dreamweaver and WordPress: Building Sites

Implementing post-driven pages


From:

Dreamweaver and WordPress: Building Sites

with Joseph Lowery

Video: Implementing post-driven pages

Posts generally appear on a site's homepage or in a separate blog page, and are all stored separately, and can be displayed chronologically or categorically. Pages, on the other hand, can have a custom design, but there generally is only one entry, which can be easily updated. But what if your client requires a hybrid of these two types of user-contributed content? A page with a custom look and feel that can display multiple posts. I call this the post-driven page, and I'll show you how to build them in Dreamweaver and WordPress with the help of a free plug-in called List Category Posts.

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...
Dreamweaver and WordPress: Building Sites
1h 42m Intermediate Feb 24, 2012

Viewers: in countries Watching now:

In this course, author Joseph Lowery shows how to create a robust WordPress-based site using Dreamweaver. The course lays out the essentials of planning a site, explains how to implement custom sidebars, and demonstrates building page templates. The course also explains how to integrate PHP functionality and extend the WordPress database.

Topics include:
  • 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
Subjects:
Web CMS
Software:
Dreamweaver WordPress
Author:
Joseph Lowery

Implementing post-driven pages

Posts generally appear on a site's homepage or in a separate blog page, and are all stored separately, and can be displayed chronologically or categorically. Pages, on the other hand, can have a custom design, but there generally is only one entry, which can be easily updated. But what if your client requires a hybrid of these two types of user-contributed content? A page with a custom look and feel that can display multiple posts. I call this the post-driven page, and I'll show you how to build them in Dreamweaver and WordPress with the help of a free plug-in called List Category Posts.

So let's flip over to WordPress and install that plug-in. I'll go to Plugin > Add New, and search for lists category posts that you see there. Click Search Plugins and it comes up at the top of the list. I'll click Install Now. I do indeed, so I'll click OK. And let's activate the plug-in. Now this plug-in was developed by Fernando Briano, and you can see his work at his site picandocodigo.net.

It's a very flexible plug-in with a good number of parameters. As the name implies, with it you can easily create lists of posts by categories. But you can also expand those lists to show excerpts or even full post content. Here's how it works. We'll go to Posts > Categories to create a new category. I'm going to call this Working the future. Now the slug, as it explains here, is the URL-friendly version of the name, and you need to put hyphens or underscores in it; I'm going to use hyphens.

That's the standard way that WordPress handles separate words. So working-the-future. We have no parent here, so let's scroll down a little bit and click Add New Category. And now you see my category in addition to the default category of Uncategorized. Now my category is defined, but before I leave this page, I need one more bit of information, and that's the ID that WordPress has assigned to that specific category. So the way you find that ID is to just hover over the name of the category and then look down in the Status Bar where you'll see the path to the file that will give you that category. And one of the URL arguments is tag_IDm and you can see that that is set to 4.

So that's our ID for the category Working the future. Okay, with that in mind, we can now go in and create a new page. I'll choose Pages > Add New, and we'll enter in a future working title. And I'm going to set my template to a new template that I had created that's part of the theme called Working-the-Future. Now we're ready to bring the plug-in we installed, List Category Posts, into play. Instead of entering the standard text into the editor for this page, we'll use the plug-in's shortcode.

And that is a square bracket, catlist. That's the keyword for the shortcode, short for category list of course, and then an argument of id=4, which you'll recall is the ID for the Working-the-future category. So we close this off with another square bracket and we're ready to publish this page. And let's take a look at it. And there's Working the Future; however, it's just presented as a list item.

So let's head back to the Dashboard and amend our shortcode to add another argument, and that is space, content=yes. You can find all of these parameters in the documentation for this plug-in. So now I'll click on Update and View page, and there is the full list. All right! It looks pretty good. Let's head back. Let's take one more step to make my custom page easily accessible, by adding it to the menus.

So I'll go down to Appearance > menus. Now I've already created a main menu here, but I'm going to select that one and then add it to the menu. And rather than have the full Working the Future title, let's go ahead and just shorten that somewhat to Working with an ellipsis. Click Save menu and now let's take a look at the site. There's Planets and there's our Working menu. All right! It's looking pretty good. You'll find that WordPress is a very flexible system, that through its core extensibility, has become even more adaptable, so that you can work with posts, pages, and even hybrids of the two.

There are currently no FAQs about Dreamweaver and WordPress: Building Sites.

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.

Upgrade 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 Dreamweaver and WordPress: Building Sites.

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