Solved

Wordpress Post vs Page, Best Practices

Posted on 2014-01-18
2
350 Views
Last Modified: 2014-01-18
I'm new to creating WordPress templates, so I apologize if this is a dumb question :)

As an example, I have a template page "About.php" which I've named "AboutUsPage".  

So I create a new page called About and it uses "AboutUsPage"

On this page, I need to display 2 user profiles.  Each profile contains a Name, Description and Image.  So I see 3 ways of accomplishing this, but I'm wondering what the best practice is.

Option 1.  Copy my the html verbatim into the html editor for the About,  This is fine, but there's html to worry about and I wonder if users editing this page will have to worry about too much.

Option 2.  Create a page for each profile, and use a custom field for the image and display both posts on the about page.  In this case, I could control where each element goes on the AboutUsPage template.

Option 3. Create a category called About, and 2 posts, 1 for each profile, under that category.  List each post in the category on the AboutUsPage template.

So the question is...  which option is best?  Or am I missing something.

Thank you for your help and opinions!
0
Comment
Question by:slightlyoff
2 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 39791361
Option 1.  Copy my the html verbatim into the html editor for the About,  This is fine, but there's html to worry about

The WordPress visual editor should handle the HTML and let the users edit without dealing with the code side.  Generally speaking, you will have to train users about HTML (albeit minimally) in order for them to be successful.  

Option 2.  Create a page for each profile, and use a custom field for the image and display both posts on the about page. Option 3. Create a category called About, and 2 posts, 1 for each profile

Both of these options make things unnecessarily complex.  Unless the About Us page is going to change frequently and thus require more than a quick edit, you would be better off just making it a normal page and placing the elements in there.

When planning out a WordPress site, it's helpful to keep the following in mind:

Pages = are meant for mostly static/timeless site content and can have hierarchy, but take no taxonomy (tags, categories).

Posts = are meant for content associated with a time/date and support both hierarchy and taxonomy but the latter is only supported with tags and categories.

Custom Post Types = are a subset of posts where you can redefine how the default Post works and add/remove meta information as well as create different types of taxonomies aside from tags and categories.  Custom Post Types are also organized separately from posts in the admin which makes them easier to expose/hide from different user roles.

Custom Fields = contain data independently of the Post/Page/CPT structures and can be recycled and reused as you see fit.

So in this specific case, you would have no real reason to use anything other than a page given only two objects.  Just lay it out and publish.

But if you were creating a company-wide directory and wanted to make it searchable as well as having a specific format, that would lean more towards creating an "Employees" custom post type with a new template and possibly using custom fields in the template to organize the placement of data.  Instead of categories and tags, you could create new taxonomies such as "Title" and "Department" and use those to help organize the employees.

Make sense?
0
 
LVL 1

Author Closing Comment

by:slightlyoff
ID: 39791369
Yes, perfect.  Thank you for taking the time to help!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wordpress CLI 4 36
Need help with validating checkout field in WooCommerce 4 59
WordPress syntax 2 28
WordPress TK Title 8 25
What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now