Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Implementing post-driven pages

From: Dreamweaver and WordPress: Building Sites

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.

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.

Show transcript

This video is part of

Image for Dreamweaver and WordPress: Building Sites
Dreamweaver and WordPress: Building Sites

21 video lessons · 16418 viewers

Joseph Lowery
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

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.


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 "Already a member? Log in

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
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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.