Title: Post Fixtures
Author: johncoswell
Published: <strong>2010년 1월 18일</strong>
Last modified: 2010년 2월 14일

---

플러그인 검색

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

![](https://s.w.org/plugins/geopattern-icon/post-fixtures.svg)

# Post Fixtures

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

[다운로드](https://downloads.wordpress.org/plugin/post-fixtures.0.2.3.zip)

 * [세부사항](https://ko.wordpress.org/plugins/post-fixtures/#description)
 * [평가](https://ko.wordpress.org/plugins/post-fixtures/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/post-fixtures/#installation)
 * [개발](https://ko.wordpress.org/plugins/post-fixtures/#developers)

 [지원](https://wordpress.org/support/plugin/post-fixtures/)

## 설명

Post Fixtures let you quickly tear down and set up test environments within your
development WordPress environment. This allows you to create post, category, and
options configurations to test specific issues and features of your themes and plugins.

**Post Fixtures** places a new menu item under _Tools_ called _Post Fixtures_. When
you visit the page, you’ll see a large textarea in which to copy and paste your 
JSON fixture data. Submitting the form with valid JSON data will cause your posts
and categories to be deleted & overwritten, and any options provided to be overwritten
or deleted.

As of the current release on GitHub, the following WordPress features are supported:

 * Posts
    - Most post data found in the `posts` table
    - Post metadata with serialization
 * Categories
 * Tags
 * Blog options with serialization and deletion

## 설치

Activate it like any other plugin. **Post Fixtures** requires PHP 5 or above.

## FAQ

#### What are the data formats accepted?

**JSON**

    ```
    {     "posts": [         {             "post_date": "2010-01-01 9:00am",             "post_title": "This is a sample post",             "post_content": "This is the post's content",             "categories": [ "Top Level 1/Sub Category 1", "Top Level 2/Sub Category 2" ],             "metadata": {                 "field-1": "value 1",                 "field-2": {                     "a_complex": "field",                     "with": [                         "lots", "of", "nested", "datatypes"                     ]                 }             },             "tags": "tag 1,tag 2"         },         {             "post_date": "2010-01-01 10:00am",             "post_title": "This is the second sample post",             "post_content": "This is the second post's content",             "categories": [ "Top Level 1/Sub Category 2", "Top Level 2/Sub Category 2" ]         }     ],     "options": {         "an-option-to-set": "simple-string",         "an-option-to-serialize": {             "this": "is a hash"         },         "an-option-to-delete": false     } } 
    ```

**PHP**

    ```
    // build an object immediately, and get the new post's ID $post_id = $builder->post('This is a sample post')                    ->date('2010-01-01 9:00am')                    ->content("This is the post's content")                    ->categories("Top Level 1/Sub Category 1,Top Level 2/Sub Category 2")                    ->metadata('field-1', 'value-1')                    ->metadata('field-2', array(                        'a_complex' => 'field',                        'with' => array(                         'lots', 'of', 'nested', 'datatypes'                        )                      ))                    ->tags('tag 1,tag 2')->build();  // build and object at the end, if order doesn't matter $builder->post('This is the second sample post')         ->date('2010-01-01 10:00am')         ->content("This is the second post's content")         ->categories("Top Level 1/Sub Category 2,Top Level 2/Sub Category 2")->defer();  // convenience wrapper around options setting $builder->option('an-option-to-set', 'simple-string')         ->option('an-option-to-serialize', array('this' => 'is a hash'))         ->option('an-option-to-delete', false); 
    ```

## 후기

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

## 기여자 & 개발자

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

기여자

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

[자국어로 “Post Fixtures”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/post-fixtures)

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

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

## 변경이력

#### 0.2.3

 * Clear cache after running fixtures. Needed for persistent caches.

#### 0.2.2

 * Bugfix for immediate build generation and sub-category addition when adding posts.

#### 0.2.1

 * Bugfix for multiple generated nested categories.

#### 0.2

 * Initial release on WordPress Plugins site.

## 기초

 *  버전 **0.2.3**
 *  최근 업데이트: **16년 전**
 *  활성화된 설치 **10보다 적음**
 *  워드프레스 버전 ** 2.8 또는 그 이상 **
 *  다음까지 시험됨: **2.9.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/post-fixtures/)
 * 태그:
 * [admin](https://ko.wordpress.org/plugins/tags/admin/)[database](https://ko.wordpress.org/plugins/tags/database/)
   [developer](https://ko.wordpress.org/plugins/tags/developer/)
 *  [고급 보기](https://ko.wordpress.org/plugins/post-fixtures/advanced/)

## 평점

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

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

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

## 기여자

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

## 지원

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

 [지원 포럼 보기](https://wordpress.org/support/plugin/post-fixtures/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](http://www.coswellproductions.com/wordpress/wordpress-plugins)