WordPress plugin intelligence profile

Advanced Custom Fields : 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 …

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.2
Current version2.0.9
WordPress coverageTested up to WordPress 6.2
Minimum stackWP 3.0 · PHP —
Directory statusactive
Last directory update8 Apr 20233y ago
Active installations2K+Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 7 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Advanced Custom Fields : CPT Options Pages version 2.0.9 as active, updated 3y ago and tested up to WordPress 6.2.

Overview

About this plugin

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 ( 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>

and the subpage’s field

></p>

Retrieve a field

>

Display a sub field

>

Display with shortcode

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

>

Please read documentation about shortcodes with ACF

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

License

Copyright (c) 2023, Tusko Trush

Requirements

You must buy ACF PRO or ACF Options Page Addon.

Translation

qTranslate-XT

This plugin is compatible and has included ACF qTranslate.

Just enjoy!

qTranslate-X

If you are using Qtranslate-X, you must install 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).

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • acf options
  • advanced custom fields
  • custom post type
  • archive
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.2
Minimum requirementsWordPress 3.0 · PHP not listed
Update activity8 Apr 20233y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.