Title: Advanced Custom Fields : CPT Options Pages
Author: Tusko Trush
Published: <strong>2016年7月8日</strong>
Last modified: 2023年4月8日

---

プラグインを検索

![](https://ps.w.org/acf-cpt-options-pages/assets/banner-772x250.png?rev=1490128)

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/acf-cpt-options-pages/assets/icon-256x256.png?rev=2105355)

# Advanced Custom Fields : CPT Options Pages

 作者: [Tusko Trush](https://profiles.wordpress.org/tusko-trush/)

[ダウンロード](https://downloads.wordpress.org/plugin/acf-cpt-options-pages.zip)

 * [詳細](https://ja.wordpress.org/plugins/acf-cpt-options-pages/#description)
 * [レビュー](https://ja.wordpress.org/plugins/acf-cpt-options-pages/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/acf-cpt-options-pages/#installation)
 * [開発](https://ja.wordpress.org/plugins/acf-cpt-options-pages/#developers)

 [サポート](https://wordpress.org/support/plugin/acf-cpt-options-pages/)

## 説明

Small addon for ACF Options. Adds ACF location for each custom post type.

**New feature** in the major version 2!
 Important! **After update to v2+ you must
reconnect Field Groups to Options Pages**

Now you can activate/deactivate CPTs and create custom options pages for each CPT.

By default, options pages are activated for all custom post types.

#### Usage

The default functions of [ACF plugin](http://www.advancedcustomfields.com/) (`get_field,
the_field, etc.`) can be used to load values from a CPT Options Pages, but second
parameter is required to target the CPT options.

This is similar to passing through a `$post_id` parameter to target a specific post
object.

The `$post_id` parameter needed is a string containing the `cpt_` and CPT name in
the following format; `"cpt_{CPT_NAME}"` and for subpages you can copy generated
ID while creating subpages.

#### Examples

> In examples Custom Post Type name is `projects`.

So, let’s go!

**Display a field**

    ```
    <p><?php the_field('field_name', 'cpt_projects'); ?></p>
    ```

and the subpage’s field

    ```
    <p><?php the_field('field_name', 'cpt_projects_testpage'); ?></p>
    ```

**Retrieve a field**

    ```
    <?php
        $field = get_field('field_name', 'cpt_projects');
        // do something with $field
    ?>
    ```

**Display a sub field**

    ```
        <?php if( have_rows('repeater_name', 'cpt_projects') ): ?>
            <ul>
                <?php while( have_rows('repeater_name', 'cpt_projects') ): the_row(); ?>
                    <li><?php the_sub_field('the_title'); ?></li>
                <?php endwhile; ?>
            </ul>
        <?php endif; ?>
    ```

**Display with shortcode**

    ```
    [acf field="field_name" post_id="cpt_projects"]
    ```

> Please read documentation about [shortcodes with ACF](http://www.advancedcustomfields.com/resources/shortcode/)

### Customization

    ```
        function cpt_projects_customize($cptmenu) {
            $cptmenu['page_title'] = 'Dev Custom title';
            $cptmenu['menu_title'] = 'Dev Custom title';
            return $cptmenu;
        }

        add_filter('cpt_projects_acf_page_args', 'cpt_projects_customize');
    ```

Don’t forget to replace `cpt_projects_` to your custom post type name 🙂
 It works
only for first level options pages, not for subpages.

#### Donate

[Support plugin](https://donatua.com/@tusko)

#### License

Copyright (c) 2023, [Tusko Trush](https://frontend.im/?github)

#### Requirements

You must buy ACF PRO or ACF Options Page Addon.

#### Translation

**qTranslate-XT**

This plugin is compatible and has included [ACF qTranslate](https://uk.wordpress.org/plugins/acf-qtranslate/).

Just enjoy!

**qTranslate-X**

If you are using Qtranslate-X, you must install [ACF qTranslate](https://uk.wordpress.org/plugins/acf-qtranslate/).

**WPML/Polylang**

If you are using WPML or Polylang, you must add constant `ICL_LANGUAGE_CODE` to `
post_id`,
 for example: `get_field('archive_title', 'cpt_projects_' . ICL_LANGUAGE_CODE)`.

## スクリーンショット

[⌊assets/screenshot-1.png⌉⌊assets/screenshot-1.png⌉[

assets/screenshot-1.png

## インストール

 1. Upload ‘acf-cpt-options-pages’ to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the`Plugins` menu in WordPress.
 3. Go to `Custom fields` submenu `CPT Options page` and activate CPTs what you need
    or create subpages for that.
 4. Create your Custom Field Group, set location rule `Options Page` and choose your
    CPT options page or subpage.
 5. Read the documentation to display your data.

## FAQ

If you have any questions on this please post an issue/question at [Github Issues](https://github.com/Tusko/ACF-CPT-Options-Pages/issues)

## 評価

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

### 󠀁[Awesome!!](https://wordpress.org/support/topic/awesome-7444/)󠁿

 [nazarpelekh](https://profiles.wordpress.org/nazarpelekh/) 2020年2月18日

The great plugin which I have been looking for a long time!! The great plugin which
I have been looking for a long time!! It works easy and awesome!

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

### 󠀁[Easy to set up, works as described, thank you!](https://wordpress.org/support/topic/easy-to-set-up-works-as-described-thank-you/)󠁿

 [Anonymous User 10379533](https://profiles.wordpress.org/anonymized-10379533/) 
2018年2月15日

Creates an options page with ACF fields in your custom post type menu for easy content
entry for the user, and also easy for the developer to display those fields in the
back-end. Thank you!

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

### 󠀁[Splendid !](https://wordpress.org/support/topic/splendid-31/)󠁿

 [iftemplar](https://profiles.wordpress.org/iftemplar/) 2017年7月28日

Saved me a lot of time, Thank You

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

### 󠀁[Nice basic feature.](https://wordpress.org/support/topic/nice-basic-feature/)󠁿

 [Kiran Dash](https://profiles.wordpress.org/thekirankumardash/) 2017年7月1日

I did not know that such a basic plugin can be there that lets me create the options
page with such ease.

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

### 󠀁[Nice and Clean ACF-plugin](https://wordpress.org/support/topic/nice-and-clean-acf-plugin/)󠁿

 [pieceofcode](https://profiles.wordpress.org/pieceofcode/) 2017年2月27日 1 reply

Awesome plugin! Saved me a lot of hassle. Does exactly as promised 🙂

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

### 󠀁[Excellent Plugin](https://wordpress.org/support/topic/excellent-plugin-2384/)󠁿

 [douglaswebdesigns](https://profiles.wordpress.org/douglaswebdesigns/) 2016年11
月16日 1 reply

Smart, intuitive and works exactly as advertised. Just what I needed for archive
pages custom headings but I'm certain I will find other ways of using this excellent
tool.

 [ 7件のレビューをすべて表示 ](https://wordpress.org/support/plugin/acf-cpt-options-pages/reviews/)

## 貢献者と開発者

Advanced Custom Fields : CPT Options Pages はオープンソースソフトウェアです。以下
の人々がこのプラグインに貢献しています。

貢献者

 *   [ Tusko Trush ](https://profiles.wordpress.org/tusko-trush/)

“Advanced Custom Fields : CPT Options Pages” は4ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/acf-cpt-options-pages/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“Advanced Custom Fields : CPT Options Pages” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/acf-cpt-options-pages)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/acf-cpt-options-pages/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/acf-cpt-options-pages/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/acf-cpt-options-pages/)
を [RSS](https://plugins.trac.wordpress.org/log/acf-cpt-options-pages/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 2.0.9

 * Tested up with WP 6.2 and ACF Pro 6.1.3

#### 2.0.8

 * Tested up with WP 5.8.1 and ACF Pro 5.10.2
 * Fix lang switcher and Wysiwyg Editor capability on ACF CPT Options pages
 * Modified page slug ‘-options’ -> ‘acfcpt-options’ to make qTranslate config regex

#### 2.0.7

 * Tested up 5.7.2
 * @Ekeler PR: Update class.acf-cpt-options-pages.php

#### 2.0.6

 * Tested up 5.7.1
 * Added apply_filters cpt_options_post_types_params

#### 2.0.5

 * Tested up 5.3.2
 * Fix donate links

#### 2.0.4

 * Tested up 5.2.1
 * Assets updated

#### 2.0.3

 * Fixed underscores in options pages title

#### 2.0.2

 * Fixed WPML slugs

#### 2.0.0

 * Added Russian, Ukrainian translations.
 * Added setting page to ACF CPT Options Pages
 * Added UI to manage options pages per CPT
 * Ability to add child pages to CPTs

#### 1.1.0

 * Support MO translations
 * Customization using `add_filter`

#### 1.1.0

 * WPML and Polylang compatibility added.

#### 1.0.2

 * Update documentation.
 * Change labels and slugs.

#### 1.0.1

 * Plugin created.

## メタ

 *  バージョン **2.0.9**
 *  最終更新日 **4年前**
 *  有効インストール数 **2,000+**
 *  WordPress バージョン ** 3.0またはそれ以降 **
 *  検証済み最新バージョン: **6.2.15**
 *  言語
 * [English (US)](https://wordpress.org/plugins/acf-cpt-options-pages/)、[French (France)](https://fr.wordpress.org/plugins/acf-cpt-options-pages/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/acf-cpt-options-pages/)、[Spanish (Spain)](https://es.wordpress.org/plugins/acf-cpt-options-pages/)、
   [Swedish](https://sv.wordpress.org/plugins/acf-cpt-options-pages/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/acf-cpt-options-pages)
 * タグ
 * [acf options](https://ja.wordpress.org/plugins/tags/acf-options/)[advanced custom fields](https://ja.wordpress.org/plugins/tags/advanced-custom-fields/)
   [archive](https://ja.wordpress.org/plugins/tags/archive/)[custom post type](https://ja.wordpress.org/plugins/tags/custom-post-type/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/acf-cpt-options-pages/advanced/)

## 評価

 5つ星中5つ星

 *  [  7 5-星レビュー     ](https://wordpress.org/support/plugin/acf-cpt-options-pages/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/acf-cpt-options-pages/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/acf-cpt-options-pages/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/acf-cpt-options-pages/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/acf-cpt-options-pages/reviews/?filter=1)

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/acf-cpt-options-pages/reviews/)

## 貢献者

 *   [ Tusko Trush ](https://profiles.wordpress.org/tusko-trush/)

## サポート

過去2ヶ月以内に解決した問題:

     0 / 1

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/acf-cpt-options-pages/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://donatua.com/@tusko)