LPagery is fully compatible with Advanced Custom Fields (ACF), allowing you to use placeholders in ACF fields for dynamic content generation. This makes it easier to automatically populate ACF fields with data from your LPagery source file.
How to Use Placeholders in ACF Fields
Set Up Your ACF Fields:
Create or edit an ACF field group in WordPress.
Add a text field where you want dynamic content to be inserted.
Insert Placeholders in the ACF Field on your template page:
In the ACF text field on your template page, enter the placeholder from your LPagery source file. This works just like placing placeholders in the content of your template page.
Example:
Let's say you have an ACF text field for "Service Description." You can insert a placeholder like this:
Field Label: Service Description
Placeholder Value: "We offer the best {service} in {city}."
When LPagery generates the pages, these placeholders will be replaced by the actual values from your source file.
Important Note: Text-Based ACF Fields Only
Currently, LPagery only supports text-based ACF fields.
This includes:
Text fields
Textarea fields
WYSIWYG editor fields