ACF Theme Code for Advanced Custom Fields
The ACF Theme Code plugin automatically generates the code needed to implement Advanced Custom Fields in your themes. Video note: This free version of ACF Theme Code now supports ACF 6. Features Reduce your development time. When you publish, edit or update an ACF Field Group, the code required to implement your fields is displayed in the Theme Code section at the bottom of your Edit Field Group page. Use the clipboard icons in this section quickly copy and paste the code blocks into your theme templates. Quality, flexible, custom code. The code generated by Theme Code Pro is based on the official Advanced Custom Fields documentation and includes escaping for secure output. All code generated has been thoroughly tested and is created with speed and flexibility of implementation in mind. Comprehensive field support This version of ACF Theme Code generates code for all the field types included in the free version of Advanced Custom Fields (see the full list of field types and settings below). The code generated is specific to the field names and field settings you use for each of your fields. ACF Theme Code PRO ACF Theme Code PRO is the premium version of this plugin. It has the following additional features. Support for all the complex field types that are included in Advanced Custom Fields PRO. Repeater Flexible Content Gallery Clone The addition of a Theme Code Location Registration Tool to the ACF Tools page that generates code for registering locations. Blocks Options Pages Support for more complex ACF Field Group Locations. Block Options Page Widget Taxonomy Comment Attachment Current User User Form Support for a range of third party fields. Upgrade or learn more about ACF Theme Code PRO. ACF fields supported This free version of ACF Theme Code generates code for the following ACF field types and settings: Text Text Area Number Range Email URL Password Image (return types Array, URL and ID) File (return types Array, URL and ID) WYSIWYG Editor oEmbed Select (values Single and Multiple, return types Value, Label and Array) Checkbox (return types Value, Label and Array) Radio Button (return types Value, Label and Array) Button Group (return types Value, Label and Array) True / False Link (return types Array and URL) Post Object (values Single and Multiple, return types Post Object and Post ID) Page Link (values Single and Multiple) Relationship (return types Post Object and Post ID) Taxonomy (appearances Checkbox, Multi Select, Radio Buttons and Select, return types Term Object and Term ID) User (values Single and Multiple, return types User Array, User Object and User ID) Google Map Date Picker Date Time Picker Colour Picker Group Requirements Advanced Custom Fields or ACF PRO (version 5.8.9 or higher) Thank you Thanks to all of our beta testers. Including Elliot Condon, Phil Smart, Richard Johnston and James Bundey. Translations Would you like to use the ACF Theme Code plugin in your native language? Then why not contribute a translation via translate.wordpress.org. If you are new to translating plugins, there is a helpful First Steps guide available. View the current state translations for ACF Theme Code. Any and all assistance with translations is greatly appreciated. Please let us know if you need any help with submitting translations.
Top keywords
- code22×4.07%
- acf16×2.96%
- types15×2.77%
- theme13×2.40%
- theme code12×2.22%
- return11×2.03%
- return types11×2.03%
- field10×1.85%
- acf theme9×1.66%
- acf theme code9×1.66%
- fields9×1.66%
- array8×1.48%
Advanced Gallery & Repeater Fields for ACF
Advanced Gallery & Repeater Fields for ACF supercharges Advanced Custom Fields with two powerful field types that include built-in frontend display options. No coding required! Enhanced Gallery Field Transform your image galleries with professional layouts – no coding needed! Available Layouts: * Grid – Responsive grid with customizable columns (1-6) * Masonry – Pinterest-style masonry layout * Carousel/Slider – Touch-enabled slider with autoplay, arrows, and dots * Justified – Flickr-style justified rows with perfect alignment * Lightbox – Built-in lightbox modal with thumbnails, keyboard navigation, and swipe support Gallery Features: * WordPress Media Library integration * Drag & drop image reordering * Configurable image sizes * Lazy loading for performance * Caption support * Touch/swipe gestures * Keyboard navigation * Fully responsive 📋 Enhanced Repeater Field Create beautiful repeating content sections with pre-built templates. ** Works with ACF Free & Pro!** – No ACF Pro required for admin editing. Available Layouts: * List – Clean, simple list format * Grid/Cards – Modern card-based grid with images, titles, and CTAs * Table – Organized data table format * Accordion – Collapsible panels with ARIA accessibility * Tabs – Horizontal or vertical tabbed interface * Timeline – Vertical timeline with dates and markers Repeater Features: * Visual admin interface (no ACF Pro needed!) * Add, remove, duplicate, and reorder rows * Field mapping for titles, content, images, links, and dates * ARIA accessibility support * Keyboard navigation * Responsive layouts * Customizable styling Key Features Works with ACF Free! – Both fields fully functional with free ACF Zero Coding – Configure everything in field settings Auto-Rendering – Use standard the_field() or get_field() Fully Responsive – Mobile-friendly layouts Fast Performance – Optimized CSS and JS Accessible – ARIA labels and keyboard navigation WP All Import Compatible – Bulk import data from CSV/XML Developer Friendly – Helper functions and CSS variables for customization SEO Optimized – Semantic HTML markup Translation Ready – Full i18n support Perfect For Photography portfolios Product galleries Team member listings Testimonials FAQs Services showcases Timeline histories Feature comparisons And much more! WP All Import Compatibility Fully compatible with WP All Import Pro and the ACF Add-On: * Enhanced Gallery: Import comma-separated image IDs or URLs * Enhanced Repeater: Import JSON or serialized data * Automatic field type mapping * Bulk data migration support Usage Examples Basic Usage: Helper Functions: Custom Styling: :root { --agrfuxd-columns: 4; --agrfuxd-gap: 20px; --agrfuxd-primary: #0073aa; --agrfuxd-radius: 10px; } Browser Support Chrome (latest) Firefox (latest) Safari (latest) Edge (latest) Mobile browsers (iOS Safari, Chrome Mobile) Developer Documentation Helper Functions agrfuxd_render_enhanced_gallery( $field_name, $post_id ) Manually render an Enhanced Gallery field with its configured layout. Parameters: * $field_name (string) – The field name or key * $post_id (int|null) – Post ID (defaults to current post) Returns: (string) HTML output agrfuxd_render_enhanced_repeater( $field_name, $post_id ) Manually render an Enhanced Repeater field with its configured layout. Parameters: * $field_name (string) – The field name or key * $post_id (int|null) – Post ID (defaults to current post) Returns: (string) HTML output CSS Variables The plugin uses CSS custom properties for easy theming: :root { /* Layout */ --agrfuxd-columns: 3; --agrfuxd-gap: 20px; /* Colors */ --agrfuxd-primary: #2271b1; --agrfuxd-text: #1e1e1e; --agrfuxd-border: #ddd; --agrfuxd-bg: #f9f9f9; /* Design */ --agrfuxd-radius: 8px; --agrfuxd-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Transitions */ --agrfuxd-transition: 0.3s ease; } CSS Classes .agrfuxd-gallery – Gallery wrapper .agrfuxd-gallery-grid – Grid layout .agrfuxd-gallery-masonry – Masonry layout .agrfuxd-gallery-carousel – Carousel layout .agrfuxd-repeater – Repeater wrapper .agrfuxd-repeater-grid – Grid/cards layout .agrfuxd-accordion – Accordion layout .agrfuxd-tabs – Tabs layout .agrfuxd-repeater-timeline – Timeline layout Privacy Policy This plugin does not collect, store, or transmit any user data. All content is stored locally in your WordPress database using standard ACF methods. Credits Developed by UXD Experts – WordPress experts specializing in user experience and custom development.