This link has been bookmarked by 331 people . It was first bookmarked on 09 Jul 2006, by Paul Wylie.
-
02 Oct 17
-
17 Nov 14
Todd WeiseIn WordPress, you can write either posts or Pages. When you're writing a regular blog entry, you write a post. Posts, in a default setup, appear in reverse chronological order on your blog's home page. Pages are for content such as "About," "Conta...
-
26 Sep 14
-
16 Sep 14
-
regular blog
-
chronological
-
entry
-
live outside of
-
chronology
-
normal blog
-
timeless
-
any content
-
Disclosure
-
Titles and Content
-
key distinction
-
throughout
-
consistent
-
-
16 Nov 13
-
Posts, in a default setup, appear in reverse chronological order on your blog's home page.
-
Pages live outside of the normal blog chronology, and are often used to present timeless information about yourself or your site -- information that is always applicable.
-
Pages are for content such as "About," "Contact," etc.
-
You can use Pages to organize and manage any content.
-
Pages can be organized into pages and subpages.
-
Pages can use different Page Templates which can include Template Files, Template Tags and other PHP code.
-
In essence, Pages are for non-blog content. It is possible to remove all or most Posts from a WordPress installation, and thus to create a standard non-blog website.
-
Pages cannot be associated with Categories and cannot be assigned Tags. The organizational structure for Pages comes only from their hierarchical interrelationships, and not from Tags or Categories.
-
Pages are not files. They are stored in your database just like Posts are.
-
Pages are not included in your site's feed.
-
Pages and Posts may attract attention in different ways from humans or search engines.
-
Pages (or a specific post) can be set as a static front page if desired with a separate Page set for the latest blog posts, typically named "blog."
-
Just as you can have subcategories within your Categories, you can also have subpages within your Pages, creating a hierarchy of pages.
-
To create a subpage
-
-
12 Nov 13
-
16 May 13
-
07 Mar 13
-
05 Mar 13
-
automatically generate a list of Pages
-
Plugins
-
can be set to use a specific custom Page Template
-
-
26 Jan 13
-
18 Jan 13
-
07 Jan 13
-
22 Sep 12
mlaudermilk"<?php
/*
Template Name: Page Of Posts
*/
// if you are not using this in a child of Twenty Eleven, you need to replicate the html structure of your own theme.
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args= array(
'category_name' => 'antiquarianism, championship', // Change these category SLUGS to suit your use.
'paged' => $paged
);
query_posts($args);
if( have_posts() ) :?>
<?php twentyeleven_content_nav( 'nav-above' );?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentyeleven_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
<?php get_search_form(); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php get_footer();"wordpress pages reference cms templates webdesign blog tutorial
-
07 Aug 12
-
06 Aug 12
-
05 Jun 12
-
If you have Permalinks enabled, and you have selected the Day and Name option (Click the Settings tab, and then click the Permalinks sub
-
WordPress is able to automatically generate a list of Pages on your site, for example within the sidebar, using a Template Tag called wp_list_pages(). See the wp_list_pages page for information on how to do the following:
-
Just as you can have Subcategories within your Categories, you can also have SubPages within your Pages, creating a hierarchy of pages.
-
You can use WordPress for basic content management.
-
A Page can easily be set to be your site's Front Page. Visit the Administration > Settings > Reading panel and under Front page displays, you can choose to set any (published) Page or Posts Page as the Front Page.
-
-
19 May 12
-
11 Mar 12
-
17 Jan 12
-
29 Dec 11
-
Pages can be organized into pages and SubPages.
-
Pages cannot be associated with Categories and cannot be assigned Tags.
-
Perhaps the greatest difference between Post and Page, in terms of attracting or impressing an audience, lies in whether your Front page is designated for "your latest posts" or "a static page.
-
-
07 Dec 11
Eduardo VillagranDesactivar y Reactivar theme de wordpress para que sea capaz de visualizar las plantillas de páginas personalizadas.
-
Si una página personalizada que existe, pero todavía no son capaces de ver selector de página de plantilla, tratar de volver a activar el tema actual.
-
<? Php / * Nombre de la plantilla: Snarfer * / >
-
Este nombre de plantilla aparecerá en el Editor de temas como el vínculo para editar este archivo.
-
- page-{id}.php
- page-{slug}.php
-
-
05 Dec 11
-
-
Listing Your Pages on Your Site
-
Note: Your .htaccess file must be writeable for Page Permalinks to work, otherwise you must update your .htaccess file every time you create a Page.
-
Individual Pages can be set to use a specific custom Page Templat
-
WordPress can be configured to use different Page Templates for different Pages. Toward the bottom of the Write > Page administration panel (or on the sidebar, depending on which version of WordPress you are using) is a drop-down labeled "Page Template." From there you can select which Template will be used when displaying this particular Page.
-
What Template is used to Display a Particular Page?
-
- The Page's selected "Page Template"
- page.php
- index.php
WordPress will look for files in the following order:
-
Examples of Pages and Templates
-
A Page of Posts for a Custom Post Type
-
Posts come and go, but Pages are here to stay
-
Page contains static information but is generated dynamically
-
-
06 Nov 11
-
03 Nov 11
-
02 Nov 11
-
03 Oct 11
-
28 Sep 11
-
27 Sep 11
-
23 Sep 11
-
05 Sep 11
-
20 Aug 11
-
18 Jul 11
-
04 Jun 11
-
24 May 11
-
13 May 11
-
24 Apr 11
-
18 Apr 11
-
03 Apr 11
-
07 Mar 11
-
02 Mar 11
Benjamin Welby<?php
/*
Template Name: PageOfPosts
*/
get_header(); ?>
<div id="content" class="narrowcolumn">
<?php
if (is_page() ) {
$category = get_post_meta($posts[0]->ID, 'category', true);
}
if ($category) {
$cat = get_cat_ID($category);
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_per_page = 4; // -1 shows all posts
$do_not_show_stickies = 1; // 0 to show stickies
$args=array(
'category__in' => array($cat),
'orderby' => 'date',
'order' => 'DESC',
'paged' => $paged,
'posts_per_page' => $post_per_page,
'caller_get_posts' => $do_not_show_stickies
);
$temp = $wp_query; // assign orginal query to temp variable for later use
$wp_query = null;
$wp_query = new WP_Query($args);
if( have_posts() ) :
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?>
<?php endif;
$wp_query = $temp; //reset back to original query
} // if ($category)
?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?> -
12 Feb 11
-
12 Jan 11
-
-
wp_list_pages
-
-
04 Jan 11
-
15 Dec 10
-
07 Dec 10
-
06 Dec 10
-
03 Dec 10
-
25 Nov 10
-
21 Nov 10
-
16 Nov 10
-
20 Oct 10
-
11 Oct 10
-
03 Oct 10
-
30 Sep 10
-
17 Sep 10
-
02 Sep 10
-
27 Aug 10
-
18 Aug 10
-
A Page Template that shows the Page's content at the top, and then displays a list of archive months and categories below it.
-
-
07 Aug 10
Mare Parker-OToole"In WordPress, you can write either posts or pages. When you're writing a regular blog entry, you write a post. Posts automatically appear in reverse chronological order on your blog's home page. Pages, on the other hand, are for content such as "About Me," "Contact Me," etc. Pages live outside of the normal blog chronology, and are often used to present information about yourself or your site that is somehow timeless -- information that is always applicable. You can use Pages to organize and manage any amount of content. "
-
15 Jun 10
-
14 Jun 10
-
20 May 10
-
14 May 10
-
09 May 10
-
04 May 10
-
29 Apr 10
-
A Page of Posts
A Page Template that displays posts from a specific category depending on a Custom Field assigned to a Page. In this example the value of the Custom Field "category" is retrieved and used as the category to retrieve the posts in that category. So if the category of posts you want to display is called "Events" then assign the Custom Field "category" with a value of "Events" to the Page. Note that this will adhere to pagination rules meaning that four (4) posts will display per page with links to older/newer posts provided. This is designed to work with the WordPress Default theme (aka Kubrick), but should work with other themes with a little modification.
Save this to pageofposts.php and then assign PageofPosts as the Template when creating the action Page:
-
-
14 Apr 10
-
07 Apr 10
-
22 Mar 10
-
21 Mar 10
-
20 Mar 10
-
04 Mar 10
-
02 Mar 10
-
22 Feb 10
-
02 Feb 10
-
28 Jan 10
-
A Page of Posts
A Page Template that displays posts from a specific category depending on what Page is being displayed. This is designed to work with the WordPress Default theme (aka Kubrick), but may work with other themes with a little modification.
Save this to pageofposts.php:
-
-
20 Jan 10
-
16 Jan 10
-
23 Dec 09
-
10 Dec 09
-
21 Nov 09
Goran Bankovic<?php /* Template Name: Snarfer */ ?>
wordpress reference templates howto template snarfer wp page-template pagetemplate
-
16 Nov 09
-
23 Oct 09
-
Alexis UrusoffPor Xavier Kirchner
Director de Prospectiva de Grupo Telefónicaimported Menú_Marcadores wordpress pages reference tutorial cms blog webdesign Imported-bnya
-
29 Sep 09
-
21 Sep 09
-
15 Sep 09
-
11 Sep 09
-
18 Aug 09
-
11 Aug 09
-
06 Aug 09
-
30 Jul 09
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.