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.
Adds an [acf_image name="hero" size="large"] shortcode that outputs a responsive image from an ACF image field, whatever return format the field uses.
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.
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.
Changes the URL base of a post type registered by a theme or plugin, for example from /portfolio/ to /work/, including its archive.
Changes the URL base of a category-style taxonomy registered by a theme or plugin, for example from /portfolio-category/ to /work-type/.
Shows each flexible content row's heading next to its layout name in the editor, so long pages built from sections are easy to scan.
Adds an [acf_map name="location"] shortcode that shows a lazy-loaded embedded map and a directions link for the place saved in an ACF Google Map field.
Styles collapsible FAQ items (from the FAQ list and ACF FAQ shortcodes, or any Details block) with dividers, a plus/minus marker and a visible keyboard focus ring.
Adds an [acf_faq] shortcode that shows a question-and-answer repeater as accessible collapsible items and outputs matching FAQPage structured data.
Uses a site-wide default from your ACF options page whenever a post's own field is empty, such as a standard call-to-action text or banner.
Loads the choices of an ACF select field from the titles of a post type, such as locations or team members, and refreshes them when those posts change.
Copies an ACF summary field into the post excerpt on save when the excerpt is empty, so themes, feeds and search results show your summary.
Hides the ACF fields you choose in the editor for everyone except administrators, such as internal notes or technical settings.
Keeps items filed under certain terms (such as "Archived" or "Internal") off a post type's main archive, while their own term archive still lists them.
Lets editors maintain the choices of an ACF select field in a repeater on an options page instead of editing the field group.
Sends logged-out visitors to the login page when they open entries or the archive of a chosen post type, and hides those entries from them in the REST API.
Turns an ACF color picker on posts and pages into a --page-accent CSS variable, so each page can have its own highlight color.
Registers a "Press Releases" post type with its own /press/ archive and feed, keeping announcements apart from the blog.
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.
Shows up to three other items that share a category or tag below single custom post type entries, such as related recipes, services or case studies.
Gives a custom post type short URLs like example.com/web-design/ instead of example.com/services/web-design/, as pages have.
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.