This page was created by MDAWaffe, and moved in. The title "Pages" was chosen since it talks about all aspects of creating and using pages. The content can be split into multiple files as and when this gets too long.
:)
My way of looking at it says that all Pages are dynamic since all of them are pulled from the database when necessary. The only way to make a 100% truly static content page through the WordPress interface without a special plugin is by making a flat file through the file editor.On another, perhaps less productive note, I really hate the name of this feature. I'm not blaming anyone, it's just an awful name from a user perspective. Is it worth talking to the devs about doing a 180, pissing off hundreds of people who are already using it, hopefully even changing the name of wp_list_pages, and in general creating a HUGE short-term mess in order to change the name of "Pages" to "...Anything Else".
I know, I don't have any good ideas, so the point may be moot. I kind of like "Folio" though.
?? --MDAWaffe 19:45, 7 Feb 2005 (GMT)
1) The name of the feature was not chosen after deliberation, it just happened to take on some common-sensical name. I am particularly averse to different web-based cmses and software defining and using their "own" terms for features, which would serve to confuse the reader. I beleive "pages" is simple, straightforward and conveys the meaning. After all, this feature was born in response to "how do I use WP to create and manage pages on the server, besides the blog?", so I'd lean towards not renaming the feature - this is only my personal opinion, of course.
2) The reason I rewrote most of the stuff I did in this article is because the Codex aims at being functional, task-oriented documentation. A lay user should not have to be involved in discussions regarding the "semantics" or the "reasons" behind any feature, unless it furthers their ability to use the provided features. What does the user gain by reading up on what "static" pages are and what "dynamic" pages are? After all, the user wants to create and manage pages using WordPress, and I guess we should deal with that first. Long, descriptive prose would not be what they would be looking for - which is my underlying assumption when creating articles. so say it short and sweet, and provide steps for users to follow, since they are often impatient and just want to "get on with the job", so to speak.
3) It would be good to limit discussion of a "meta" nature (like how Codex should work in general etc) to Talk pages, and keep articles to the point and relevant.
4) Post don't really "come and go" - a post, as well as a page, will stay as long as the user want either to :) So maybe we could change that a little.
Do you really think we need to be verbose about what static pages are, what dynamic pages are etc? Can we not define what "pages" are in WordPress' terms and be done with describing how to create and manage them?
;)
And I thought I was being so clear. I meant Posts come and go in the sense that they come and go off the main page. But you're absolutely right - it's the exact same issue I had with "Page content is static (implying Post content is not)".:)
--MDAWaffe 21:54, 7 Feb 2005 (GMT):)
Hi,
I'm quite new to WP. I was just wondering is there any plans for a "document type" functionality like in Daisy and Drupal? The idea is, that all content would be stored, retrieved and handled the same way. And that you could define your own document types.
This is really an amazingly wonderful work, MDA. And of course, I have a few nags and questions.
At least on this page, since the Pages and pages are discussed a lot, we at least identify them by calling them Individual Pages or individual Pages. They are individuals, at the least. Until a decision is made. No need to use it for every reference but the ones where it gets confusing might help.
I agree with the others that the Notations and Nomenclature should be appreviated and the comment that pages are not posts... is very condensed but very helpful. I can slash and burn, but I thought I'd give you first option.
In the section "What Template is used to Display a Particular Page?", I did a minor clarification edit but this isn't clear if it is referring to a Page or a page.
In the section on "Using Pages" here is my rewrite with a few spelling fixes. Use it if you would like. Basically, it just offers a better intro for each section and organizes them in a way that seems to work better for the new user discovering this process for the first time. Note: As a general rule, when using two ll words like traveling and labeling, there is only one l, unless you come from a country that doubles their Ls.
Using Pages
In general, Pages are very similar to Posts in that they both have Titles and Content. Pages, though, have several key distinctions which make them quite different from Posts.
Let's look at the different ways Pages can be used in WordPress.
Pages Can Use Different Templates
Your WordPress Templates control how your site is displayed. Themes create the presentation style of the overall look of the site, and individual Pages can override the default presentation theme and feature their own unique stylesheet.
Towards the bottom of the USER:MDAWaffe/Write Page SubPanel, is a drop down list labeled "Page Template". From here, you can select which Template will be used when displaying this individual Page.
The files defining....(continue on with the rest of it)
Pages Can Have Specific Uses Such as for Forms
Static forms such as signup pages for mailing lists, emailed announcements, and other forms often require their own individual Page rather than a database generated page......EXAMPLES
Pages Can Be Used Instead of Category Pages idea
You may want to customize your Category page to look different dependent upon the specific Category. You can replace the links to your specific Categories to individual Pages in the sidebar menu and style the Category Pages to your individual needs....EXAMPLES
Pages Can Be SubPages
Just as you can have SubCategories within your Categories, you can also have SubPages within your Pages. Suppose you are creating a WordPress site for a travel agent and would like to create an individual Page for each continent and country to which the agency can make travel arrangements. You would begin by creating a Page called "Africa" onto which you could describe general information on travel to Africa. Then create a series of Pages which would be SubCategories to "Africa" and might include "Lesotho", "Camaroon", "Togo", and "Swaziland". Another individual Page is made for "South America" and would feature SubPages of "Brazil", "Argentina", and "Chile". Your site would then list:
To begin the process, on the Page panel, in the upper right corner of the panel is a drop down box called "Page Parent". This contains a list of all the Pages already created for your site. To turn your current Page into a SubPage, or Child of the Parent Page, select the appropriate Page from the drop down list. When the Pages are listed, the child Page or SubPage will be nested under the Parent Page.
Listing Your Pages on Your Site
Once you have your Pages and SubPages created, you need to display them on your site. The Template Tag wp_list_pages() can be used to generate a list of links to all of your Pages. The documentation describing this tag's use describes how to sort this list in various ways. To fully customize.....CONTINUE
I hope this helps and doesn't hurt. If you want me to put these changes in, I will. The core is intact, just a little housekeeping.
Lorelle 17:55, 17 Feb 2005 (GMT)
index.php
, for example, is a Template but has nothing to do with Pages (necessarily).I agree with it all. Have your way with it as you feel. The only reason I pulled out the specific "Pages Can Have..." because it explains the specific uses of the Pages as functions. This isn't a difficult concept, but people are having some trouble with it, so outlining the specific uses as to why these are treated a bit differently will help.
I agree there should be a page with specific examples for the different uses.
What kind of a "brief notation blurb" are you thinking about? And YEAH the explanation should be moved to the bottom.
Now, it's a you or me thing. Do your worst, since this is your baby, and then I'll come in with another axe ;-).
Lorelle 21:06, 17 Feb 2005 (GMT)
single.php
) with a bunch of if
statements. USER:MDAWaffe/Conditional Tags (Conditional Tags) is a preliminary article on various WordPress 1.5 functions that test for various conditions.if ( is_single(5) || is_single(8) ) { // Do some PHP/HTML } else { // Do some different PHP/HTML }
Putting that in your single.php
will tell WordPress to do something different for post ID# 5 and 8 versus all the other posts. This method doesn't use Pages, though (and I think implementing what you want should not), so this probably isn't the best place to talk about it. --MDAWaffe 23:36, 20 Feb 2005 (GMT)
I had troubles finding anything for this and made a solution, thought it would help other users to add here. This is where I looked originally for it so here it is. -- Grand Edgemaster 19th Feb 05 23:52 GMT
Can you make the pages format according to Markdown / Textile rules? Currently by default it looks like it doens't work. Also you should probably make some mention of this in the description of the feature, it was looking forward to editing static pages with Markdown --User RanH
~~~~
Hello,
This Page to Top plugin is the cat's pajamas for my using wordpress as a CMS.
Thing is, once I make a Page the top.. I don't see how to get back to the blog main page. What do I need to do to still have a blog main page, just not have it on top.
Thanks,
Larry
Since I found the problem interesting, I edited the section a little to make it clearer, though I wonder if the suggested method would work, since regardless of whether the link is hardcoded in, or generated by wp_list_pages();, the visitor may get redirected to the new "front page" :Carthik ‹ ℂ › Talk 04:54, 22 Mar 2005 (UTC)
Thanks Carthik, your clarification changes to this page of the manual make this crystal clear. I'd read through the forums pretty thoroughly and didn't see anything that answered my specific question, so thanks for the extra detail! I'm not sure if it will work either, i'll try it out and let you know.
-Larry
This line is confusing for me: "To create a new Template for a Page you must create a file. Let's call our first Template for our Page snarfer.php." It is unclear how this file for a Template is created. Can it be created with WordPress' Write screen, as a Page would be, or is it a file you must create with a text editor and upload to the correct folder? --User KathyP 21:38, 15 Apr 2005 (UTC)
This section on "a template to display a Page's actual Content" is also perplexing. Earlier in the article you state that Pages are not Posts, and yet here you are putting "The Loop" into a custom template for a Page. Does "The Loop" apply to content other than posts? If so, that needs to be made clear in the article on "The Loop." --User KathyP 21:52, 15 Apr 2005 (UTC)
Including a Page is also not clear. I would need to see examples to understand what including a Page would do for me. --User KathyP 21:52, 15 Apr 2005 (UTC)
I've recently revised a lot of the content on this page to improve readability. There was a lot of clutter, a lot of repeated information, and a lot of stuff that was irrelevant. I have also clarified the info about Page Templates.
Also, do we need to be so anal about bolding every occurance of Page or Pages? Wikipedia's policy on Bolding the term is to Bold it the first time it appears on the page. I'm not against the capitalization of the term, but maybe bolding every occurance is a bit much... Glutnix 03:47, 17 May 2005 (UTC)
Terms Used in this ArticleFor the purpose of clarity, throughout this document:
For further Page related nomenclature issues, see A Note on Nomenclature. |
I fixed the Pages_can_be_SubPages link by changing it to the Organizing_Your_Pages section. That seemed to be the most appropriate place here, and a search didn't turn up any pages that looked more appropriate. I can't be sure that was the actual intent, though.
While you can use permalinks when you want one Page to link to another, you can also use relative links. For example, on the Page "Cameroon", a link to "Togo" would be coded as
href="../togo/"
Always remember the trailing slash on the addresses you enter manually. If you don't, the referenced page will come up fine, but any of its relative links will be broken.
Optionally, more discussion on why the "../" is needed there could be included. --Converting2wp 00:45, 19 May 2007 (UTC)
All the info about customizing the home page with a static page should be obsolete information, right? --Tom 03:34, 26 April 2008 (UTC)
I updated this page in several ways. I added info about changing the page URL, since this is not intuitive in 2.5. Also, I removed the note about setting the front page as the home page in version 2.1. I only kept the info about setting the home page in the current version, as well as the alternate method for setting the home page. I moved the section on making your blog appear in a non-root folder to a new page at the bottom. It doesn't seem to fit on this page's topic. I clarified the title of the last section, renaming it "The Dynamic Nature of WordPress Pages." I consolidated the info to make it more concise. I added a link to Lorelle's advice on the importance of contact and about pages. And I removed the bit about Page versus page versus Page because it seemed unnecessary to me, and only made things less clear. The only possible place where it might be misconstrued is in the last section on the static versus dynamic nature of pages, so I clarified the difference there.
Here's the stuff I deleted from the page, so if you feel I trimmed in error, feel free to add it back.
{| cellspacing="3" |- valign="top" |class="MainPageKnowledgeBaseBox" style="border: 1px solid #ffc9c9; padding: .5em 1em 1em; color: #000000; background-color: #fff3f3"| ===Terms Used in this Article=== <span id="Notation_Used_in_this_Article"></span> For clarity, throughout this document: * "page", with a lowercase "p", will describe ''any'' [[Glossary#HTML|HTML]] document on the web. * "Page", with a capital "P", will refer to a ''"WordPress Page"'', the feature of WordPress that this wiki page details. Use "'''Page'''", in '''bold''', when the use of the term is ambiguous. For further '''Page''' related nomenclature issues, see [[#A Note on Nomenclature|A Note on Nomenclature]]. |} '''Note:''' In 2.1, the conditional [http://codex.wordpress.org/Conditional_Tags#The_Main_Page is_home()] function no longer returns true for the Front Page set in Admin. In order to emulate the pre-2.1 function of returning true for the "front" home page, use the [http://www.bos89.nl/1197 is_frontpage plugin] or use [http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page is_page(home)] where the slug of your desired front page is "home". The following paragraphs explain how to duplicate this functionality for versions prior to v2.1. The home.php file is not needed in versions 2.1+ . Use the setting in the control panel to set your static home page.
--Tom 17:47, 26 April 2008 (UTC)
I think the note about Pages versus pages versus Pages is unnecessary, and only adds to the bulk of this document. Would anyone mind if I take that little note out and remove the bold formatting from the word "Pages"? Also, we need to add instructions about changing the page slug in 2.5. --Tom 16:51, 26 April 2008 (UTC)
I have tried following the link to the "pages add new subpanel" but it keeps coming back to this page. Does the target page exist? Anyone know how to fix this?
I have discovered the obsolete page Write Page SubPanel. The new one is supposed to replace this. Lots of other pages link to the new one that isn't there.
DanDare 00:53, 24 June 2009 (UTC)
Hello. There are a couple of plugins that are referenced in this page - one links to a page last updated in 2008, and the other to a domain that's no longer active. Should these links just be removed? I would go ahead and just do it, but I just registered today and don't want to mess anything up. Should I just fix the links? -- Ancawonka 00:12, 20 January 2010 (UTC)
Yes please just go ahead and delete any links from the pages that you notice are broken or spam.
mrmist 08:51, 20 January 2010 (UTC)
I think it would be appropriate to just remove the following heading and paragraph from this page.
http://codex.wordpress.org/Pages#WordPress_as_a_CMS
What does it actually mean/imply/aim-to-say. I think it could be trimmed simply because it serves little or no purpose to have it there.
http://codex.wordpress.org/Pages#A_Page_of_Posts
Why create a new WP_Query object for the page? There's one available, and if it's not being used or referenced (it's not in the example), then why use a seperate instance? Redeclare the main query if it's not being used (why create an extra query when it's not necessary)..
Suggestion: Use query_posts and drop the is_page() check, since you're not giving an example of using the existing query(ie. the page the page template is attached to).
T31os 19:44, 29 April 2010 (UTC)
Upon recommendation of docs team we split Page_Templates pf of the Pages article. We took most of the information from this article, put it in the new one, updated it, then removed the now-redundant info in this article.
Hearvox 03:30, 3 May 2013 (UTC)
http://codex.wordpress.org/Pages#What_Template_is_Used_to_Display_a_Particular_Page.3F
In the What Template is Used to Display a Particular Page? section, what directory is the template file supposed to be in? ex: page-131.php I have tried several locations and had no luck. Also is the commenting at the top of the file with the template name required for this to work?