AdvancedCustomFields / AdvancedCustomFields/acf

Feature request: Allow post type in field conditions

Open
#443 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Allow conditions to be defined as location rules for post type. it's often I want to create 1 rather than multiple new field groups. But I only want certain fields to show on specific post types. As of how ACF works right now this require display all for all post types or create multiple field groups.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by locating the existing field-group location-rule and post-type condition handling, then determine how one field group could express different post-type visibility; done means fields show only for the selected post types without requiring duplicate groups.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.