Documentation

Generate: Dynamic Elements: Custom Field

Documentation »

Page Generator Pro » Generate: Dynamic Elements: Custom Field
The Custom Field Dynamic Element is available in Page Generator Pro 4.6.2 and higher, releasing Thursday June 20th 2024 23:59 UTC.  Ensure that your license is valid, not expired and that you’ve updated to the latest version of the Plugin.

The Custom Field Dynamic Element displays data from the Custom Fields section of a Content Group for each generated Page. It’s useful if you want to reference content in Custom Fields, that you might choose not to overwrite on re-generation.

Adding: Classic Editor / TinyMCE

To add Claude AI content within the Classic Editor:

  • Ensure that you’re using the Visual Editor by clicking the Visual tab:
    Page Generator Pro: Dynamic Elements: TinyMCE: Visual Editor Tab
  • Click the Custom Field icon in the Visual Editor toolbar:
    Page Generator Pro: Dynamic Elements: Custom Field: TinyMCE Button

Adding: Classic Editor / TinyMCE: Text Editor

If you’re using the Text editor instead of the TinyMCE Visual Editor above:
Page Generator Pro: Dynamic Elements: TinyMCE: Text Editor Tab

  • Click the Custom Field button in the toolbar:
    Page Generator Pro: Dynamic Elements: Custom Field: Text Editor Button

Adding: Gutenberg

To add Custom Field content within Gutenberg:

  • Click the plus icon between two existing blocks, or towards the top left corner of the Gutenberg editor
    Gutenberg: Add Block Button
  • Start typing Custom Field into the Search for a block field, and click the Claude AI option that appears within the Page Generator Pro section
    Page Generator Pro: Dynamic Elements: Custom Field: Gutenberg: Search
  • Follow the Configuration section below for each of the fields displayed in the right hand sidebar’s block panel:
    Page Generator Pro: Dynamic Elements: Custom Field: Gutenberg: Configuration

Adding: Page Builders

To add Custom Field AI content within any Page Builder that supports a Text Editor widget/module using the Classic Editor (sometimes known as TinyMCE), refer to the Classic Editor instructions above.

Refer to the Dynamic Elements Documentation for details specific to your Page Builder.

If your Page Builder does not provide a Text Editor widget/block that uses the Classic Editor, you can still use Dynamic Elements.  However, you’ll need to manually build the shortcode, inserting it into your Page Builder’s content – for example:
[page-generator-pro-custom-field parameter="value" ...]

ParameterAccepted ValueDescription
meta_keystring or keywordThe Meta Key as defined in the Custom Fields section of the Content Group. Its value will be output on the generated Page.

Configuration

Page Generator Pro: Dynamic Elements: Custom Field: Configuration

Meta Key

To display content from the Custom Fields section of a Content Group, reference the applicable Meta Key.

For example, if a Content Group contains a Custom Field with the Meta Key ai_content:
Page Generator Pro: Dynamic Elements: Custom Field: Content Group's Custom Fields

The value of this field can be displayed (in this case, the output of the OpenAI Dynamic Element shortcode) by entering ai_content as the Meta Key name.

Use Cases

The primary use case for the Custom Field Dynamic Element is when you want to re-generate Pages from a Content Group, whilst retaining existing generated AI content from a Dynamic Element (such as OpenAI, Claude, Mistral or Gemini) – that is, not re-running Claude AI Dynamic Elements a second time.

The buttons to insert Dynamic Elements into Custom Fields is available in Page Generator Pro 4.6.3, available Thursday June 27th 2024 23:59 UTC.

To do this, we recommend the following workflow:

  • Clicking the button for the applicable Dynamic Element,
    Page Generator Pro: Generate: Content: Custom Fields: Dynamic Elements Buttons
  • Entering the applicable configuration in the modal window,
  • Clicking Insert
  • Defining the Meta Key – for example, ai_content
    Page Generator Pro: Dynamic Elements: Custom Field: Content Group's Custom Fields

  • Insert the Custom Field Dynamic Element in to the Content Group’s Content.
  • Generate via Browser, observing results.

To subsequently edit the existing Content Group, and re-generate Pages without re-generating AI content:

  1. Edit Content Group:
    1. Overwrite = Yes, if existing Page generated by this Group
    2. Overwrite Sections: Custom Fields must be unchecked / unticked
  2. Make edits to your Content Group as necessary
  3. Re-generate via Browser

Observe our AI Dynamic Element is not run a second time; existing AI content stored in the Custom Field is retained in the existing generated Page/Post.


Published

Last Updated