MetaForge Engine is a high-performance WordPress custom field builder and modern ACF alternative engineered for developers who demand clean architecture, fast execution, and guaranteed Zero Lock-In.
Whether you are building complex enterprise content models, structured UI components, nested data groups, or dynamic custom post types, MetaForge Engine delivers a visual field builder, a robust developer PHP API, and deep multi-provider AI assistance without database bloat or proprietary format traps.
wp_postmeta, wp_termmeta, wp_options) without cryptic serialization or proprietary locks.metaforge_* template helpers (metaforge_get_field(), metaforge_have_rows(), metaforge_the_row()).metaforge_post_order, metaforge_term_order).metaforge/ block registry) with zero React or JavaScript boilerplate. Customize block rendering using standard PHP template overrides (template-parts/blocks/{slug}.php).metaforge_get_field(), metaforge_have_rows(), etc.) are defensively wrapped with function_exists(). If MetaForge Engine is ever deactivated, your templates remain safe from fatal PHP errors, and all custom meta remains 100% accessible via native WordPress get_post_meta() calls.MetaForge Engine provides a developer-friendly PHP template API designed for fast theme and plugin development:
<?php
// Retrieve a formatted custom field
$hero_title = metaforge_get_field('hero_title');
$hero_image = metaforge_get_field('hero_image'); // Returns formatted image array
if ($hero_title) : ?>
<div class="hero-banner">
<h1><?php echo esc_html($hero_title); ?></h1>
<?php if (!empty($hero_image['url'])) : ?>
<img src="<?php echo esc_url($hero_image['url']); ?>" alt="<?php echo esc_attr($hero_image['alt']); ?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<?php
// Retrieve nested associative subfields from a Group field
$contact_group = metaforge_get_field('contact_info');
if (!empty($contact_group)) : ?>
<div class="contact-card">
<p><strong>Email:</strong> <?php echo esc_html($contact_group['email'] ?? ''); ?></p>
<p><strong>Phone:</strong> <?php echo esc_html($contact_group['phone'] ?? ''); ?></p>
</div>
<?php endif; ?>
<?php
// Register field groups locally in theme or plugin functions.php
add_action('init', function () {
if (function_exists('metaforge_add_local_field_group')) {
metaforge_add_local_field_group([
'key' => 'group_property_details',
'title' => 'Property Specifications',
'location' => [
[
['param' => 'post_type', 'operator' => '==', 'value' => 'property']
]
],
'fields' => [
[
'key' => 'field_prop_price',
'label' => 'Listing Price',
'name' => 'listing_price',
'type' => 'number',
],
[
'key' => 'field_prop_agent',
'label' => 'Assigned Agent',
'name' => 'assigned_agent',
'type' => 'user',
]
]
]);
}
});
<?php
// Loop through a repeater field using standard row syntax (Pro)
if (metaforge_have_rows('pricing_features')) : ?>
<ul class="features-list">
<?php while (metaforge_have_rows('pricing_features')) : metaforge_the_row(); ?>
<li>
<span class="icon"><?php echo esc_html(metaforge_get_sub_field('icon_class')); ?></span>
<strong><?php echo esc_html(metaforge_get_sub_field('feature_title')); ?></strong>:
<?php echo esc_html(metaforge_get_sub_field('feature_description')); ?>
</li>
<?php endwhile; ?>
</ul>
<?php metaforge_reset_rows(); ?>
<?php endif; ?>
<?php
// Modular flexible layout builder dispatcher (Pro)
if (metaforge_have_rows('page_sections')) :
while (metaforge_have_rows('page_sections')) : metaforge_the_row();
$layout = metaforge_get_row_layout();
// Dispatches to template-parts/blocks/{layout}.php
get_template_part('template-parts/blocks/' . sanitize_file_name($layout));
endwhile;
metaforge_reset_rows();
endif;
?>
MetaForge Engine includes 20 production-ready field types in the free core version:
<br> or <p> auto-formatting.Upgrade to MetaForge Pro to unlock 8 additional enterprise-grade field types:
metaforge_post_order, metaforge_term_order).metaforge_options post type.manage_metaforge)..json files within your theme or plugin for Git version control and team synchronization.wp metaforge sync in continuous integration and automated deployment scripts.MetaForge Engine integrates optional third-party AI service providers to power its AI Layout Assistant, Schema Generator, and Content Generation tools. MetaForge Engine supports the official WordPress 7.0+ Core AI Client (wp_ai_client_prompt()), allowing site administrators to use centralized AI providers configured under Settings > Connectors. For sites running earlier WordPress versions (WP 6.x) or users who wish to supply their own API keys, MetaForge Engine connects directly to user-configured LLM providers. These services are only invoked when a site administrator explicitly configures an API key under MetaForge -> AI Settings and initiates an AI generation action.
* Service: OpenAI LLM APIs (ChatGPT & Responses API)
* Purpose: Powering natural language field schema generation and content creation.
* Data Sent: Admin-provided prompts and field structure context. No user PII is sent.
* Condition: Sent only when OpenAI is selected as the active AI provider in AI Settings and an AI action is triggered by an administrator.
* Terms of Service: https://openai.com/policies/terms-of-use/
* Privacy Policy: https://openai.com/policies/privacy-policy/
* Service: Anthropic Messages API
* Purpose: Powering natural language field schema generation and content creation.
* Data Sent: Admin-provided prompts and field structure context. No user PII is sent.
* Condition: Sent only when Anthropic is selected as the active AI provider in AI Settings and an AI action is triggered by an administrator.
* Terms of Service: https://www.anthropic.com/legal/terms
* Privacy Policy: https://www.anthropic.com/legal/privacy
* Service: Google Generative AI API
* Purpose: Powering natural language field schema generation and content creation.
* Data Sent: Admin-provided prompts and field structure context. No user PII is sent.
* Condition: Sent only when Google Gemini is selected as the active AI provider in AI Settings and an AI action is triggered by an administrator.
* Terms of Service: https://ai.google.dev/terms
* Privacy Policy: https://policies.google.com/privacy
* Service: Groq LPU Inference Cloud API
* Purpose: Fast natural language field schema generation and content creation using open models.
* Data Sent: Admin-provided prompts and field structure context. No user PII is sent.
* Condition: Sent only when Groq is selected as the active AI provider in AI Settings and an AI action is triggered by an administrator.
* Terms of Service: https://groq.com/terms-of-use/
* Privacy Policy: https://groq.com/privacy-policy/
* Service: DeepSeek API
* Purpose: Powering natural language field schema generation and content creation.
* Data Sent: Admin-provided prompts and field structure context. No user PII is sent.
* Condition: Sent only when DeepSeek is selected as the active AI provider in AI Settings and an AI action is triggered by an administrator.
* Terms of Service: https://cdn.deepseek.com/policies/en-US/deepseek-terms-of-use.html
* Privacy Policy: https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html
* Service: OpenRouter LLM Gateway
* Purpose: Routing natural language prompts to user-selected AI models.
* Data Sent: Admin-provided prompts and field structure context. No user PII is sent.
* Condition: Sent only when OpenRouter is selected as the active AI provider in AI Settings and an AI action is triggered by an administrator.
* Terms of Service: https://openrouter.ai/terms
* Privacy Policy: https://openrouter.ai/privacy
MetaForge Engine bundles the following open-source third-party libraries:
Select2:
SortableJS:
MetaForge_AI_API_KEY in wp-config.php.