Title: Quick and Easy Post creation for ACF Relationship Fields
Author: Cyril Batillat
Published: <strong>22 Tháng 7, 2016</strong>
Last modified: 15 Tháng 9, 2016

---

Tìm kiếm plugin

![](https://ps.w.org/quick-and-easy-post-creation-for-acf-relationship-fields/assets/
banner-772x250.png?rev=1458782)

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://ps.w.org/quick-and-easy-post-creation-for-acf-relationship-fields/assets/
icon-256x256.png?rev=1458759)

# Quick and Easy Post creation for ACF Relationship Fields

 Bởi [Cyril Batillat](https://profiles.wordpress.org/cyrilbatillat/)

[Tải về](https://downloads.wordpress.org/plugin/quick-and-easy-post-creation-for-acf-relationship-fields.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/quick-and-easy-post-creation-for-acf-relationship-fields/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/quick-and-easy-post-creation-for-acf-relationship-fields/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/quick-and-easy-post-creation-for-acf-relationship-fields/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/quick-and-easy-post-creation-for-acf-relationship-fields/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/)

## Mô tả

This plugin is a excellent companion of ACF (Advanced Custom Fields).

When dealing with ‘Relationship’ or ‘Post Object’ fields (which links a post to 
one or multiple other posts), you often stumble on having to link to a post that
does not exist yet. This is a frustrating and time-consuming experience: you have
to save the content you were working on, then create the new post, and finally reload
your primary content to be able to link to the newly created post.

This plugin simplifies this process by allowing you to create the related posts 
on the fly.

> 
> #### PRO version
> 
> This plugin is only compatible with the **free** version of Advanced Custom Fields.
> 
> [A PRO version](https://codecanyon.net/item/quick-and-easy-post-creation-for-acf-relationship-fields-pro/17201274),
> compatible with ACF PRO, [can be purchased here](https://codecanyon.net/item/quick-and-easy-post-creation-for-acf-relationship-fields-pro/17201274).

#### Translations

This plugin is actually translated in the following languages:

 * English
 * French

Feel free to help me to enhance existing translations or to propose other languages.

#### Support

Please use [the dedicated forum](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields)
for any bug or improvement suggestion.

### Credits

Thanks to Elliot Condon for his amazing plugin Advanced Custom Fields

## Ảnh màn hình

[⌊Enable post creation on your 'Relationship' or 'Post Object' Field, in ACF settings⌉⌊
Enable post creation on your 'Relationship' or 'Post Object' Field, in ACF settings⌉[

Enable post creation on your ‘Relationship’ or ‘Post Object’ Field, in ACF settings

[⌊Notice the button that allows you to create a new content (in this case, a new
album)⌉⌊Notice the button that allows you to create a new content (in this case,
a new album)⌉[

Notice the button that allows you to create a new content (in this case, a new album)

[⌊The new post can be created in a dedicated popup. Fill the fields as you would
have done normally, and publish the post.⌉⌊The new post can be created in a dedicated
popup. Fill the fields as you would have done normally, and publish the post.⌉[

The new post can be created in a dedicated popup. Fill the fields as you would have
done normally, and publish the post.

[⌊The new post is added in your relationship field⌉⌊The new post is added in your
relationship field⌉[

The new post is added in your relationship field

## Cài đặt

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

#### Once activated

You can enable on-the-fly post creation on a field basis.

 1. In your ACF Field Groups, locate the field you want to enable on-the-fly post creation.
 2. Check “Yes” on the field setting “Display a link to create content on the fly?”
 3. That’s all. Now, while editing your content, you’ll see a button next to your field
    to create a new post (see Screenshots section)

## Hỏi đáp

  Is it compatible with Advanced Custom Fields PRO version?

No. A PRO version of `Quick and Easy Post creation for ACF Relationship Fields` 
plugin, compatible with ACF PRO, [can be purchased here](https://codecanyon.net/item/quick-and-easy-post-creation-for-acf-relationship-fields-pro/17201274).

  Can we make the lightbox wider?

Unfortunately not for the moment. This will be a possible enhancement when [this bug](https://core.trac.wordpress.org/ticket/27473)
will be fixed.

  Does this add-on handle bidirectional relationships?

Bidirectional relationships are out of the scope of this add-on. However, [the ACF documentation](https://www.advancedcustomfields.com/resources/bidirectional-relationships/)
gives a great example to achieve this.

  Is it possible to pre-populate a child field depending on the parent from where
it’s been created?

Yes it is. This add-on loads the child post form in an iframe with some additional
URL params:

 1. acf_rc_from_content_type: the post type of your parent post.
 2. acf_rc_from_content_ID: the ID of your parent post.

You can use these URL params to pre-populate an ACF field on your child post. Example:

    ```
    <?php
    add_filter('acf/load_field/name=${NAME_OF_YOUR_ACF_FIELD}', 'populate_acf_field' );
    function populate_acf_field( $field ) {
        if( !empty( $_REQUEST['acf_rc_from_content_type'] ) && $_REQUEST['acf_rc_from_content_type'] == '${YOUR_PARENT_CONTENT_TYPE}' && !empty( $_REQUEST['acf_rc_from_content_ID'] ) ) {
            $field['value'] = 'whatever you want';
        }
        return $field;
    }
    ```

## Đánh giá

![](https://secure.gravatar.com/avatar/d131c0d36cf65a8f4963263bd201e4f25d7fb1734c23ea5756e19d01b7a72756?
s=60&d=retro&r=g)

### 󠀁[No bidirectionnal relation](https://wordpress.org/support/topic/no-bidirectionnal-relation/)󠁿

 [karnabal](https://profiles.wordpress.org/karnabal/) 3 Tháng 9, 2016 1 trả lời

Hi, Nice plugin, but it would be a 5 stars one if it would support bidirectionnal
relationships (like in Advanced Custom Fields: 2-Way Post Relation). It would be
very usefull, when a user creates an album by filling an artist page, that the artist
appears in the album edit page. Do you think this extension could evoluate in this
direction?

 [ Đọc tất cả 1 đánh giá ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/)

## Người đóng góp & Lập trình viên

“Quick and Easy Post creation for ACF Relationship Fields” là mã nguồn mở. Những
người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Cyril Batillat ](https://profiles.wordpress.org/cyrilbatillat/)

[Dịch “Quick and Easy Post creation for ACF Relationship Fields” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/quick-and-easy-post-creation-for-acf-relationship-fields)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/quick-and-easy-post-creation-for-acf-relationship-fields/),
check out [SVN repository](https://plugins.svn.wordpress.org/quick-and-easy-post-creation-for-acf-relationship-fields/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/quick-and-easy-post-creation-for-acf-relationship-fields/)
qua [RSS](https://plugins.trac.wordpress.org/log/quick-and-easy-post-creation-for-acf-relationship-fields/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 2.2

Compatibility with translate.wordpress.org

#### 2.1

 * Plugin review invitation

#### 2.0

 * Now supporting ‘Post Object’ fields ! 🙂
 * Fix CSS bugs in tooltip positioning

#### 1.2

 * Core: Add a link to the PRO version of this plugin when detecting ACF PRO version.

#### 1.1

 * Bug fix: plugin was not working with relationship fields on attachments (in media
   modal)

#### 1.0

 * First release

## Meta

 *  Phiên bản **2.2**
 *  Cập nhật lần cuối **10 năm trước**
 *  Số lượt cài đặt **30+**
 *  Phiên bản WordPress ** 4.5 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.6.30**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/quick-and-easy-post-creation-for-acf-relationship-fields/)
 * Thẻ
 * [acf](https://vi.wordpress.org/plugins/tags/acf/)[advanced custom fields](https://vi.wordpress.org/plugins/tags/advanced-custom-fields/)
   [field](https://vi.wordpress.org/plugins/tags/field/)[post object](https://vi.wordpress.org/plugins/tags/post-object/)
   [relationship](https://vi.wordpress.org/plugins/tags/relationship/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/quick-and-easy-post-creation-for-acf-relationship-fields/advanced/)

## Đánh giá

 4 trên 5 sao.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/reviews/)

## Những người đóng góp

 *   [ Cyril Batillat ](https://profiles.wordpress.org/cyrilbatillat/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/quick-and-easy-post-creation-for-acf-relationship-fields/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LU5K2FXVMYCUS)