Solved

WordPress design philosophy

Posted on 2013-06-26
7
381 Views
Last Modified: 2013-06-27
This question is a more general follow-up from 28140828 which answered a specific question about a plugin. As a WP novice, I have a stylistic question. When a plugin can be added to Menus as a post or as a Page using shortcode, what are the pros and cons of either method, e.g., adding a gallery? Are they both ultimately the same thing? For what kind of content is one preferable to the other?
0
Comment
Question by:MarkJulie
7 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39280300
Your question is a little unclear.  Are you asking about Pages vs. Posts vs. Custom Post Types vs. [something that gets brought in via a shortcode] and when to use what?
0
 
LVL 6

Expert Comment

by:Vijay Pratap Singh
ID: 39280316
No both are not same thing if you use shortcode to add gallery in a post or page it will be readed as page and gallery will be embeded in it and you cant use that in sidebar at a particular position. While as a plugin it depend which plugin you are using will provide u more flexibity.
0
 
LVL 25

Expert Comment

by:James Rodgers
ID: 39281269
you cant use that in sidebar at a particular position.

you can add shortcode to any side bar using the text widget, and adding
add_filter('widget_text', 'do_shortcode');

to you functions.php
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:MarkJulie
ID: 39281453
jason1178,

To clarify, I am asking a design question. When I want to add new content, how do I decide between page or post (if a plugin or extension does not specify one method)?

1) What is the primary use of a page and when would I want to create a new page for content?

2) Aside from a blog, what is the purpose of a post and when is it best to use that format?

A number of plugins (contact, map, gallery, social media) seem to require setup like a post. It is not clear to me yet when to create a new page or whether a feature or plugin is designed to be added as a custom menu item.
0
 
LVL 4

Assisted Solution

by:ScorchD
ScorchD earned 100 total points
ID: 39283204
Hi Mark,

When you are talking about plugins adding sections that appear as posts they are, if you think of any additional areas of the site such as a products section for example they are custom post types, so they can act in the same way as posts, have their own categories, taxonomies and page templates.

When to create a new page? well that depends on what you want to do, you can set rules within templates to react differently depending on the page, post type of area of the site you are in or you can denote different layouts for those post types by naming them accordingly.

In short you can do almost anything, in almost anyway you want to, personally I think it is best to keep it as simple and clean as possible especially when generating themes to sell. Page templates have their place and that's probably the best place to start as they are easy to understand.
As far as running shortcodes in templates that depends on what you need to do, sometimes if you need to pass the shortcode dynamic information you may want to write it in to your template files.

Hope this helps and makes some sense, think of it more like a blog centric cms.
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 200 total points
ID: 39283231
To clarify, I am asking a design question. When I want to add new content, how do I decide between page or post (if a plugin or extension does not specify one method)?

Page vs. Post is easy.  Pages in WordPress are uncategorized, untagged, and intended to be somewhat permanent.  So your "About Company" content is a page as is "Contact Us" and others like that.  If the content is not going to change very often and requires no other hierarchy beyond parent-child, use a Page.

Posts are intended to be more flexible.  As ScorchD notes, they have taxonomy (categories and tags) and WordPress will automatically organize your posts into category and date archives provided your theme has the appropriate template files.  So the natural use for posts are for news-like content (blog entries, what's new with the company, etc) and the category/tagging function allows your users to take different pathways to get to the content.

Custom Post Types are basically the same as Posts except you can add your own taxonomy beyond mere category and tag and (as ScorchD noted) you can also have completely different templating.  Technically, posts between different categories can also have different templating due to the flexible nature of the WP template hierarchy but that's a can of worms best left alone for this discussion. Another advantage to CPTs are that they show up as separate objects on the backend which makes them easier to deal with and keep organized.
0
 

Author Comment

by:MarkJulie
ID: 39283574
Thanks for the overview. Coming from a design product that put customization into static pages and used a clunky CMS for changing content, that helps me see how to approach learning WP.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Read about why website design really matters in today's demanding market.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

743 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

13 Experts available now in Live!

Get 1:1 Help Now