background preloader

Wordpress

Facebook Twitter

Plugin

Template. Themes. Perishable Press: Digital Design and Dialogue ~ WP-Box - Prestation de service WordPress et WordPress Mu. Template Tags/wp list pages. Function Reference/wp list pages Languages: 中文(简体) • English • 日本語 • (Add your language) Description Displays a list of WordPress Pages as links.

Template Tags/wp list pages

It is often used to customize the Sidebar or Header, but may be used in other Templates as well. Usage Default Usage <? By default, the usage shows: Is not restricted to any specific author Is not restricted to the child_of any Page No Parent/Child trees excluded No pages are excluded Date created is not displayed All Pages and sub-pages are displayed (no depth restriction) Results are echoed (displayed) No pages are explicitly included Sorted by Page Order then Page Title. Parameters Note: generically, arguments are inherited from get_pages. sort_column (string) Sorts the list of Pages in a number of different ways. Note: The sort_column parameter can be used to sort the list of Pages by the descriptor of any field in the wp_post table of the WordPress database. Customizing Your Sidebar. Customizing Your Sidebar The sidebar is a narrow vertical column often jam-packed with lots of information about a website.

Customizing Your Sidebar

Found on most WordPress sites, the sidebar is usually placed on the right or left-hand side of the web page, though in some cases, a site will feature two sidebars, one on each side of the main content where your posts are found. This tutorial examines some of the information items and features generally found in the sidebar. After reading this article you’ll feel more comfortable in adding or changing the content of your own sidebar. Nested Lists The Classic and Default WordPress Themes use nested lists to present their sidebar information. <ul><!

Each of these nested list "sections" can feature a CSS ID or class to make each one look different or all the same, depending upon how they are styled within the style sheet. You don't have to use nested lists for your sidebar. Navigation An example usage of the Pages list template tag in your sidebar.php file might be: <? <? Pages. Languages: English • Español • Français • Italiano • 日本語 • 한국어 • ລາວ • myanmar • Nederlands • Português do Brasil • Русский • Slovenčina • ไทย • 中文(繁體) • (Add your language) In WordPress, you can put content on your site as either a "post" or a "page".

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. In contrast, pages are for non-hierarchical content: pages like "About" or "Contact" would be common examples. 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 relevant.

In addition to the common "About" and "Contact" pages, other examples include "Copyright", "Disclosure", "Legal Information", "Reprint Permissions", "Company Information" or "Accessibility Statement". In general, pages are very similar to posts in that they both have titles and content. Conditional Tags. Languages: English • Français • Italiano • 日本語 • Türkçe • Português do Brasil • 中文(简体) • (Add your language) Introduction The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches.

Conditional Tags

For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. With the is_home() Conditional Tag, that task is made easy. Note the close relation these tags have to WordPress Template Hierarchy. Warning: You can only use conditional query tags after the posts_selection action hook in WordPress (the wp action hook is the first one through which you can use these conditionals). However: if you have a reference to the query object (for example, from within the parse_query or pre_get_posts hooks), you can use the WP_Query conditional methods (eg: $query->is_search()) The Conditions For ... The Main Page.