acf-extended / ACF-Extended

🚀 All-in-one enhancement suite that improves WordPress & Advanced Custom Fields
https://www.acf-extended.com
238 stars 27 forks source link

Advanced Link: Ability to Disable either 'Post' and/or 'Term' for the Link Type #88

Open bwmatter opened 2 years ago

bwmatter commented 2 years ago

Is your feature request related to a problem? Please describe. I have a field where the client needs to be able to add External Links with Text for a link to display on the front end. ex. <a href="https://externalurlhere">Text to show here</a>

I want to eliminate the option for them to add "Post" or "Term" links in this section as it would not be appropriate for this field.

Describe the solution you'd like Either of the following solutions:

  1. Ability in the Field Group editor for the 'Filter by Post Type' and 'Filter by Taxonomy' to select an option for each that would disable them.
  2. Ability through a filter to exclude any of the 2 types i.e. 'Post' and/or 'Term'

Describe alternatives you've considered I have thought about just creating a 'Group' field with a 'URL' field and a 'Text' field, but that seemed like overkill. I have also thought about adding CSS to hide those types, but that is my last resort.

Additional context None