Title: Default Theme Pages
Author: Carlos
Published: <strong>2012년 6월 18일</strong>
Last modified: 2012년 8월 30일

---

플러그인 검색

![](https://ps.w.org/default-theme-pages/assets/banner-772x250.png?rev=559748)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://s.w.org/plugins/geopattern-icon/default-theme-pages_fbfbfb.svg)

# Default Theme Pages

 작성자: [Carlos](https://profiles.wordpress.org/carlos_a_sanz/)

[다운로드](https://downloads.wordpress.org/plugin/default-theme-pages.zip)

 * [세부사항](https://ko.wordpress.org/plugins/default-theme-pages/#description)
 * [평가](https://ko.wordpress.org/plugins/default-theme-pages/#reviews)
 * [개발](https://ko.wordpress.org/plugins/default-theme-pages/#developers)

 [지원](https://wordpress.org/support/plugin/default-theme-pages/)

## 설명

#### This plugin is intended to be useful for template developers

#### New in version 0.4

 * added ‘object’ (page object) in every $default_theme_pages item for fast access.
 * added all default pages to wp toolbar, inside ‘site name’, to increase user experience.

#### How to use

Add this code in your _functions.php_.

    ```
    global $default_theme_pages;
    $default_theme_pages = array(
        array(
            'name' => 'home',               // initial slug page / id for templating - access functions
            'title' => 'Homepage',          // page title
            'option' => 'page_on_front',    // option page id ( stores the page id in an option, use only in theese cases)
            'description' => 'homepage'     // description
        ),
        array(
            'name' => 'blog',
            'title' => 'Blog',
            'option' => 'page_for_posts',
            'description' => 'blog'
        ),
        array(
            'name' => 'contact',
            'title' => 'Contact me!',
            'description' => 'Contact form page'
        )
     );
    ```

#### Tips

 * After the pages are created automatically, you can change their title and slug
   without problem.
 * If you add an `option` names: `page_on_front` and `page_for_posts`, you will 
   block the _home-page_ and the _blog-page_ on your site.

#### Templating

You can template using **ID** or **name** (setted up in $default_theme_pages global
variable ), something like:

**page-131.php** or **page-contact.php** (If you change the page slug, this will
still work because ‘contact’ was defined as _pagename_ if $default_theme_pages global
variable).

For detect if you’re in that page:

    ```
    dtp_is_page('contact')
    ```

Getting a default page id:

    ```
    $page_id = dtp_get_page_id('contact');
    ```

This method is more quick than _get\_page\_by\_path_ because page ID is stored on
global variable.

## 스크린샷

 * [[
 * Admin pages list

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Default Theme Pages”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Carlos ](https://profiles.wordpress.org/carlos_a_sanz/)

[자국어로 “Default Theme Pages”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/default-theme-pages)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/default-theme-pages/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/default-theme-pages/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/default-theme-pages/)을 [RSS](https://plugins.trac.wordpress.org/log/default-theme-pages/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 0.4

 * added ‘object’ (page object) in every $default_theme_pages item for fast access.
 * added all default pages to wp toolbar, inside ‘site name’, to increase user experience.

#### 0.3

 * changed stored system to gain performance
 * added ‘id’ in every $default_theme_pages item for fast use
 * added some accessible functions: `dtp_is_page`, `dtp_get_page_id`
 * added default pages in template system, now you can template a default page as:`
   page-name.php`

#### 0.2

 * blocked status modifications
 * blocked move to trash

#### 0.1

 * Initial release

## 기초

 *  버전 **0.4**
 *  최근 업데이트: **14년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 3.0 또는 그 이상 **
 *  다음까지 시험됨: **3.4.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/default-theme-pages/)
 * 태그:
 * [block](https://ko.wordpress.org/plugins/tags/block/)[pages](https://ko.wordpress.org/plugins/tags/pages/)
   [templating](https://ko.wordpress.org/plugins/tags/templating/)[theme](https://ko.wordpress.org/plugins/tags/theme/)
 *  [고급 보기](https://ko.wordpress.org/plugins/default-theme-pages/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/default-theme-pages/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/default-theme-pages/reviews/)

## 기여자

 *   [ Carlos ](https://profiles.wordpress.org/carlos_a_sanz/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/default-theme-pages/)