ACF Custom Fields Setup: From Prototype to Production

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1All 2062 services
ACF Custom Fields Setup: From Prototype to Production
Simple
from 1 day to 3 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1358
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1251
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    956
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1188
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    929
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    947

ACF Custom Fields Setup: From Prototype to Production

Imagine: an editor needs to fill a product card with 50 parameters. Standard metaboxes force them to scroll through an endless list of text fields. Errors are inevitable: mangled dates, broken links, swapped numbers. We integrated Advanced Custom Fields with field groups and nested repeaters—entry speed tripled, errors dropped to zero. The editor gets clear forms, while the code stays clean and maintainable. A typical project with 10 field groups takes 4–6 hours instead of 10–15 when done manually—a 2–3x difference. Order turnkey ACF setup and accelerate content entry.

Uncomfortable data entry is a classic pain point. Standard WordPress meta boxes are text fields without hints. The editor makes mistakes in date format, URLs, numbers. ACF provides a calendar, sliders, dropdowns. Support complexity is also solved: when there are many fields, code with add_meta_box and update_post_meta turns into spaghetti. ACF groups fields, supports conditional logic and JSON sync. Flexible Content lets the editor assemble a page from blocks (hero, text, gallery). We set up the logic once; the editor uses it for years.

What problems we solve with ACF

  • Inconvenient data entry. ACF replaces text fields with calendar, sliders, dropdowns. No more format errors.
  • Complex maintenance. Field grouping, conditional display, and JSON sync simplify code support.
  • Flexibility without programming. Flexible Content gives the editor the ability to build a page from predefined blocks without PHP knowledge.
Criteria ACF Manual meta boxes
Setup time for 10 fields 2–4 hours 6–8 hours
Editor experience High (UI field types) Low (plain text)
Query performance Medium (100+ fields may slow down) Depends on implementation
Development speed 2–3x faster Slower

How ACF simplifies editor work?

We register field groups programmatically—this is the production standard. The code lives in the theme and is versioned in Git. Example group "Project Details":

add_action('acf/init', function () {
    acf_add_local_field_group([
        'key' => 'group_project_details',
        'title' => 'Детали проекта',
        'fields' => [
            [
                'key' => 'field_project_client',
                'label' => 'Клиент',
                'name' => 'project_client',
                'type' => 'text',
                'required' => 1,
                'placeholder' => 'Название компании',
            ],
            [
                'key' => 'field_project_year',
                'label' => 'Год реализации',
                'name' => 'project_year',
                'type' => 'number',
                'min' => 2000,
                'max' => 2030,
                'default_value' => date('Y'),
            ],
            [
                'key' => 'field_project_url',
                'label' => 'URL проекта',
                'name' => 'project_url',
                'type' => 'url',
            ],
            [
                'key' => 'field_project_tech_stack',
                'label' => 'Технологии',
                'name' => 'project_tech_stack',
                'type' => 'checkbox',
                'choices' => [
                    'react' => 'React',
                    'vue' => 'Vue.js',
                    'laravel' => 'Laravel',
                    'wordpress' => 'WordPress',
                    'nextjs' => 'Next.js',
                ],
                'layout' => 'horizontal',
            ],
            [
                'key' => 'field_project_gallery',
                'label' => 'Галерея скриншотов',
                'name' => 'project_gallery',
                'type' => 'gallery',
                'min' => 0,
                'max' => 20,
                'mime_types' => 'jpg,jpeg,png,webp',
                'return_format' => 'array',
            ],
        ],
        'location' => [
            [['param' => 'post_type', 'operator' => '==', 'value' => 'project']],
        ],
        'menu_order' => 0,
        'position' => 'normal',
        'style' => 'seamless',
        'label_placement' => 'top',
    ]);
});

Why register fields via code instead of the admin UI?

The ACF admin UI is convenient for quick prototypes, but in production leads to problems: configuration is stored in the database, hard to version, and fields can disappear on migration. Code is the only reliable method. The ACF documentation recommends this approach for production.

Repeater—repeatable data blocks

[
    'key' => 'field_project_results',
    'label' => 'Результаты проекта',
    'name' => 'project_results',
    'type' => 'repeater',
    'min' => 1,
    'max' => 10,
    'layout' => 'table',
    'button_label' => 'Добавить результат',
    'sub_fields' => [
        ['key' => 'field_result_metric', 'label' => 'Метрика', 'name' => 'metric', 'type' => 'text', 'placeholder' => 'Конверсия'],
        ['key' => 'field_result_before', 'label' => 'До', 'name' => 'before', 'type' => 'text', 'placeholder' => '1.2%'],
        ['key' => 'field_result_after', 'label' => 'После', 'name' => 'after', 'type' => 'text', 'placeholder' => '3.8%'],
    ],
],

Output data on the frontend: get_sub_field in a have_rows loop. We use the code below in project templates.

if (have_rows('project_results')) {
    echo '<table class="results-table">';
    echo '<thead><tr><th>Метрика</th><th>До</th><th>После</th></tr></thead><tbody>';
    while (have_rows('project_results')) {
        the_row();
        printf('<tr><td>%s</td><td>%s</td><td>%s</td></tr>',
            esc_html(get_sub_field('metric')),
            esc_html(get_sub_field('before')),
            esc_html(get_sub_field('after'))
        );
    }
    echo '</tbody></table>';
}

Flexible Content—page builder

Allows the editor to assemble a page from different block types: hero, text, columns. We prepare the layouts, and the editor fills them with content.

[
    'key' => 'field_page_sections',
    'label' => 'Секции страницы',
    'name' => 'page_sections',
    'type' => 'flexible_content',
    'button_label' => 'Добавить секцию',
    'layouts' => [
        'hero' => [
            'key' => 'layout_hero',
            'name' => 'hero',
            'label' => 'Hero-баннер',
            'sub_fields' => [
                ['key' => 'field_hero_title', 'label' => 'Заголовок', 'name' => 'title', 'type' => 'text'],
                ['key' => 'field_hero_bg', 'label' => 'Фон', 'name' => 'bg', 'type' => 'image', 'return_format' => 'array'],
                ['key' => 'field_hero_button', 'label' => 'Кнопка', 'name' => 'button', 'type' => 'link'],
            ],
        ],
        'text_columns' => [
            'key' => 'layout_text_columns',
            'name' => 'text_columns',
            'label' => 'Текст в колонках',
            'sub_fields' => [
                ['key' => 'field_tc_cols', 'label' => 'Колонки', 'name' => 'columns', 'type' => 'repeater',
                    'sub_fields' => [
                        ['key' => 'field_tc_text', 'name' => 'text', 'label' => 'Текст', 'type' => 'wysiwyg'],
                    ],
                ],
            ],
        ],
    ],
],

Conditional field display

ACF allows showing a field only when another field has a specific value. For example, show a CTA button text only if the toggle is enabled.

[
    'key' => 'field_show_cta',
    'label' => 'Показать CTA',
    'name' => 'show_cta',
    'type' => 'true_false',
    'ui' => 1,
],
[
    'key' => 'field_cta_text',
    'label' => 'Текст кнопки',
    'name' => 'cta_text',
    'type' => 'text',
    'conditional_logic' => [
        [['field' => 'field_show_cta', 'operator' => '==', 'value' => '1']],
    ],
],

JSON sync

ACF PRO automatically saves field groups to files /acf-json/*.json when modified via the admin UI. We commit these files to Git, and on another environment we click Sync. For automation, we use acf_sync_field_groups() in a must-use plugin.

Common mistakes and how to avoid them

  • Empty fields after saving—often due to missing get_field() check: always use get_field('name', $post_id) ?: 'default'.
  • Forgotten fields in templates—check with have_rows() or get_field() with a fallback.
  • Incorrect data type—ACF does not validate automatically; use esc_* functions.
Field type Average load time per page (10 fields) Recommendations
Text 2ms No restrictions
Image 50ms (with 5 images) Use return_format => 'id' and lazy loading
Gallery 100ms (10 images) Cache or output via AJAX
Repeater (10 rows) 20ms Use get_field() instead of have_rows() for large sets
Flexible Content (5 blocks) 40ms Group layouts and cache results

What is included in turnkey work

  • Audit of current meta fields and post types.
  • Design of ACF field structure for your tasks.
  • Programmatic registration of all field groups in functions.php or a separate plugin.
  • Setup of repeaters, flexible content, conditional logic, and options pages.
  • Creation of frontend output templates.
  • Export of configuration to JSON and sync setup.
  • Documentation of fields and their usage.
  • Performance testing and query optimization if needed.
  • Editor training (basic).

Process of work

  1. Analysis. We study content types, current meta fields, and editor needs.
  2. Design. We create a layout of field groups: types, relations, conditional displays.
  3. Implementation. We code field registration and output. Using PHP 8.x, Composer, modern practices.
  4. Testing. We test all scenarios: creation, editing, output, caching.
  5. Deployment. Sync via JSON, pass documentation.

Timeline: from 3 to 10 working days depending on complexity (number of fields, nesting, number of post types). Pricing is individual. Ready to solve your task? Contact us for an estimate.

Why choose us

Over 5 years in web development. Completed more than 50 WordPress projects with ACF. We guarantee stable field operation and timely bug fixes after delivery. We keep the code clean—no unnecessary plugins. Ready to organize your admin panel? Contact us—we'll find the optimal ACF structure for your project. Get a consultation via the form on the website or messenger.

WordPress Development: Custom Themes, Plugins, and WooCommerce

A client arrives with a ready-made WordPress site—first thing in DevTools: 47 active plugins, page weight 6.8 MB, TTFB 2.4 s, five conflicting jQuery versions in the console. That's not rare; it's the standard for a "finished" site grown from a template into something alive but unmanageable. We solve such problems end-to-end—from audit to deployment. Get in touch—we evaluate your project in one business day.

WordPress holds 43% of the CMS market (Wikipedia)—not because it's perfect, but because it's predictable, extensively documented, and has an ecosystem for any task. The engineer's job is to use that ecosystem carefully, not turning the site into a dependency dump. We help find balance between functionality and performance, drawing on 10 years of experience and 80+ completed projects.

What are common architectural problems in WordPress?

Render-blocking from plugins

Plugin A loads jQuery 3.6, Plugin B loads jQuery 1.12, the theme has its own jQuery Migrate. The result: wp_enqueue_scripts delivers three different library versions, rendering blocked 800 ms before main content parsing. Solved with wp_dequeue_script, centralized dependency control, and defer/async for non-critical scripts.

N+1 queries and their solution

A developer wrote WP_Query in a loop—each post generates a separate SQL query. On a page with 20 posts, that's 21+ database queries. MySQL lags, server heats. Fixed with post__in plus prefetch, or switching to wpdb->get_results() with JOIN. Query Monitor is the first diagnostic tool.

WooCommerce under load

A store with 15,000 SKUs, no object caching, no Redis—at 200 concurrent users wc_get_product() kills the database. WordPress transients don't help: they write to DB, increasing load. The real solution is Redis via wp-redis or Memcached, plus wp_cache_set()/wp_cache_get() in custom code.

How to choose architecture: headless or monolithic?

The choice depends on performance requirements and interface complexity. Headless (REST API / WPGraphQL + Next.js) gives up to 50% TTFB improvement and frontend isolation, but requires more complex infrastructure. Monolithic themes are easier to maintain for content projects where SEO is critical and direct access to WP Rewrite is needed. We help determine the optimal option during audit. Switching to headless improves LCP by 2.5x compared to monolithic with proper caching—confirmed on 30+ projects.

How do we push LCP under 2.5s for production WordPress sites?

Achieving green Core Web Vitals requires systematic work: remove render-blocking resources (inline critical CSS, defer non-critical JS), serve WebP via <picture> with srcset, prefetch LCP image with fetchpriority="high", and implement Redis-backed full page caching. On stores, additionally prefetch WC_Product objects and disable plugin enqueues on irrelevant pages. Our audit reports baseline LCP, CLS, INP values and gives exact steps to hit Google thresholds.

Stack and approaches in WordPress development

Theme development. We do not use page builders like Elementor for product sites—they generate bloated HTML and lock clients into the visual editor forever. A custom theme based on _s (underscores) loads 4x faster than an Elementor theme. Instead: custom theme or block theme for Full Site Editing, Tailwind CSS via Vite, TypeScript for complex JS.

Gutenberg and block development. Since WordPress 5.0, Gutenberg is not just an editor—it's a platform. We develop custom blocks using @wordpress/scripts, register them with register_block_type() and block.json. Server-side rendering via PHP for SEO-critical blocks, client-side for interactive ones. Inner Blocks for composite components.

REST API and headless. WordPress as headless CMS via WP REST API v2 or WPGraphQL. Typical setup: WordPress on subdomain cms.example.com, Next.js frontend on main domain. ISR (Incremental Static Regeneration) for blog pages—page regenerates in background on request after revalidate expires, without blocking the user. For authenticated requests—JWT via jwt-authentication-for-wp-rest-api or Application Passwords (built-in since WP 5.6). More about REST API—Wikipedia.

WooCommerce. Extend via hooks and filters—never modify core files. Custom product types via WC_Product extension. For complex pricing logic—woocommerce_get_price_html and woocommerce_product_get_price. Payment gateways written from scratch, inheriting from WC_Payment_Gateway. Integration with 1C via CommerceML or custom REST endpoint.

Performance. Required stack: Redis Object Cache + Full Page Cache (LiteSpeed Cache or WP Rocket) + CDN for static files + WebP via add_image_size() with conversion. Native lazy load (loading="lazy") plus custom for critical images above the fold—preload with <link rel="preload">.

Approach Performance Development Complexity SEO Recommended For
Monolithic theme Medium Low Excellent Content sites, blogs, landing pages
Headless (REST/GraphQL) High High Good (with SSR) Web apps, SPAs, multi-domains
Headless + Next.js (ISR) Very High Medium Excellent Catalogs, news portals

Case study: WooCommerce store, LCP 9.2s → 1.8s

From our practice: an electronics store, 40,000 SKUs, WooCommerce + custom theme. PageSpeed Insights: LCP 9.2s, CLS 0.41, INP 680ms.

Diagnosis:

  • Hero image 3.8MB JPEG, unoptimized, no srcset
  • 23 plugins loading JS/CSS on every page, including product pages
  • wc_get_product() called 60 times on a category page without caching
  • Fonts loaded via Google Fonts (additional DNS lookup)

What we did:

  • Hero—WebP 180KB, <img fetchpriority="high" decoding="async">, srcset for 3 breakpoints
  • Conditional plugin loading with is_product(), is_cart(), is_checkout()—removed 80% of unnecessary JS
  • Redis Object Cache, WC_Product prefetch via wc_get_products() with include
  • Fonts—self-hosted via @font-face, font-display: swap
  • CLS fixed with aspect-ratio on all product card images

Result: LCP 1.8s, CLS 0.04, INP 140ms. Core Web Vitals—green. Client reduced hosting costs by 240,000 rub/year after moving to a cheaper plan made possible by reduced load. Additionally, replacing 10 plugins with one custom one saved another 80,000 rub/year on licenses.

More about diagnostic methods We used Lighthouse CI, WebPageTest with mobile network emulation, and a custom plugin logging all WordPress queries. The full report includes recommendations for each component.

Work process

  1. Audit and analytics. Analyze existing codebase, competitors, technical requirements. For new sites—semantic core, UX prototyping.
  2. Architecture. Decide: monolithic or headless. Define Custom Post Types, Custom Fields (ACF or native register_meta()), taxonomies.
  3. Development. Local environment: Docker (nginx + php-fpm + MariaDB). Git with pre-commit hooks for PHP CS Fixer and ESLint. Deployment via WP-CLI + SSH or Buddy.works CI/CD.
  4. Testing. PHPUnit for custom plugins. Playwright for E2E critical scenarios (add to cart → checkout → confirmation). Lighthouse CI in pipeline—fail if Performance Score < 85.
  5. Deploy and support. Staging via WP Stagecoach or manual clone. Monitoring—UptimeRobot + Sentry for PHP errors. Plugin updates—via WP-CLI in test environment first.

What you get as a result

  • Fully custom theme or modification of existing one
  • Configured object caching (Redis/Memcached) and Full Page Cache
  • Optimized media files (WebP, srcset, lazy load)
  • Code structure documentation and update instructions
  • Training for content managers on Gutenberg blocks
  • 30-day uptime guarantee after deployment
  • Access to repository with full change history

Timeline benchmarks

Project Type Timeline
Landing page on custom theme 2–3 weeks
Corporate site (10–30 pages) 4–8 weeks
WooCommerce store (basic) 6–10 weeks
WooCommerce + custom logic + integrations 3–6 months
Headless WordPress + Next.js 8–16 weeks

Pricing is calculated individually after requirements audit. Contact us for a preliminary estimate.

Common mistakes in WordPress development

  • Directly editing theme files—all changes lost on theme update. Use a child theme or fully custom theme.
  • update_post_meta() in a loop—each call is a separate UPDATE. For bulk operations use $wpdb->update() or update_metadata_by_mid().
  • Disabled WP_DEBUG during development—hidden PHP Notices clutter error log and often indicate real issues.
  • Storing media in Git—wp-content/uploads in .gitignore, sync via WP-CLI media import or rsync.
  • No limit on WP_Queryposts_per_page => -1 on a page with thousands of posts guarantees a timeout.

Why trust WordPress development to professionals?

We have been on the market for over 10 years, completed 80+ projects, hold certifications from Automattic, and have experience with WooCommerce on high-traffic sites. Our solutions account for all nuances: from plugin compatibility to Core Web Vitals requirements (Google recommendations). After project completion you get a documented, tested, and scalable platform.

For a consultation and evaluation of your project—contact us. We respond within one hour during business hours. Get a free preliminary audit today.