Solved

Wordpress Post vs Page, Best Practices

Posted on 2014-01-18
2
353 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
This video teaches users how to migrate an existing Wordpress website to a new domain.

738 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