Make an ACF Field Read-Only
Shows an ACF field's value in the editor but stops editors changing it, useful for IDs or values filled by an import or integration.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Shows an ACF field's value in the editor but stops editors changing it, useful for IDs or values filled by an import or integration.
Lets editors maintain the choices of an ACF select field in a repeater on an options page instead of editing the field group.
Adds a "Minimal" toolbar choice to ACF WYSIWYG fields with only bold, italic, link and lists, for short formatted text where full editing is too much.
Rejects uploads to a chosen ACF image field when the picture is smaller than the width and height you need, such as for hero banners.
Limits the choices in ACF relationship and post object fields to published content, newest first, so editors cannot link to drafts.
Turns an ACF color picker on posts and pages into a --page-accent CSS variable, so each page can have its own highlight color.
Publishes selected fields from your ACF options pages at /wp-json/wpide/v1/site-options, so a headless front end or app can load site-wide settings.
A ready-to-edit example that registers an ACF field group (subtitle, summary and call-to-action link) for posts in PHP, so the fields are version-controlled and cannot be changed in the admin.
Prevents two posts from sharing the same value in a field, such as a product code, membership number or reference ID.
Wraps the output of ACF oEmbed fields in a 16:9 container and adds lazy loading, so embedded videos scale to the screen instead of overflowing on phones.
Lets editors use shortcodes in ACF text and text area fields, which ACF otherwise prints as plain text.
Stores Advanced Custom Fields field groups, post types and options pages as JSON files in wp-content/acf-json, so they survive theme changes and can go into version control.
Adds a [term_field name="..."] shortcode that prints an ACF field of the current category, tag or custom term on archive pages, or of a term you specify.
Adds an [author_field name="job_title"] shortcode that shows an ACF user field of the current post's author, for author boxes and bylines.
Adds an [acf_option name="phone"] shortcode that prints a value from an ACF options page anywhere, such as a phone number or address in widgets and footers.
Adds the post type and publish date after each title in ACF relationship and post object fields, so similar titles are easy to tell apart.
Adds an [acf_list name="features" sub="text"] shortcode that turns a repeater field into a bulleted list, with an optional second sub field shown in bold.
Adds a column showing an ACF field to a post type's admin list and lets you sort the list by it, for values like price, date or priority.
Removes the post being edited from the choices of ACF relationship and post object fields.
Shows a small preview of an ACF image field in a post type's admin list, handy for logos, headshots or product photos that are not the featured image.
Hides the post type and taxonomy builder added in ACF 6.1, for sites that register content types in code or with another tool.
Re-enables Advanced Custom Fields' own [acf field="..."] shortcode, which ACF 6.3 switched off by default for security.
Keeps a relationship field in sync on both sides, so linking post A to post B also links B back to A, and removing the link removes it from both.
Registers an "ACF field" block bindings source, so paragraph, heading, button and image blocks can show ACF values without a custom block (WordPress 6.5+).