ACF Google Maps API Key From wp-config.php
Gives Advanced Custom Fields' Google Map field your API key from a constant in wp-config.php, so the key never sits in the database or theme files.
Snippet Library
Snippets for custom post types, taxonomies and custom fields: register a post type, add meta boxes, show fields in lists and archives. For developers modeling content beyond posts and pages.
Gives Advanced Custom Fields' Google Map field your API key from a constant in wp-config.php, so the key never sits in the database or theme files.
Switches on editor features such as excerpts, revisions, page attributes or custom fields for post types that were registered without them.
Adds a body class such as "acf-hide-title" when a true/false field is switched on for the current page, so you can change the layout with CSS alone.
Shows WordPress's own Custom Fields meta box again, which Advanced Custom Fields hides by default to speed up the editor.
Sets a post's title and slug from ACF fields when it is saved, for example a team member's first and last name, so editors never type it twice.
Pre-fills an empty ACF date picker with today's date on new posts, saving a click for fields like "published on" or "received".
Adds a [field_value name="..."] shortcode that prints an ACF field of the current post and handles images, links, choices, dates and post objects sensibly.
Adds an "Event details" box (start, end, venue, address, price, attendance mode and ticket link) to events, saved securely, plus an [event_details] shortcode to display them.
Adds an "acf_fields" property with the ACF fields you list to the REST API responses of chosen post types, for headless front ends and apps.
Adds a dropdown above a post type's admin list with every value used in a custom field (such as city or brand), so you can show only matching items.
Hides the ACF fields you choose in the editor for everyone except administrators, such as internal notes or technical settings.
Removes the Advanced Custom Fields menu on the live site so field groups can only be edited on development or staging, where changes are synced through JSON.
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.
Limits the choices in ACF relationship and post object fields to published content, newest first, so editors cannot link to drafts.
Adds price, bedrooms, bathrooms, floor area and address fields to property listings and a [property_details] shortcode that shows them as a fact list.
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.
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.