Using Pods Custom Settings Page Fields in Divi Modules

Written by Dan Mossop

Pods includes a Custom Settings Page feature, which allows you to easily create new settings pages in the WordPress Dashboard area, and reuse the values from these pages throughout the site.

Divi Dynamic Content Extended adds the ability to access these values from Divi's Dynamic Content feature. This means you can easily use values from the Pods Custom Settings page within Divi modules, and the modules will automatically be kept up-to-date as the information on the settings page changes.

This article explains how to use the Dynamic Content feature to display the values from a Pods Custom Settings Page in your Divi modules.

To use Pods Custom Settings Page fields in Divi modules:

  1. Install Pods plugin and Divi Dynamic Content Extended.
  2. Create Custom Settings Page in Pods and add fields.
  3. In Divi module settings, click Dynamic Content icon.
  4. Select desired Pods field for content.
  5. Save changes for updated dynamic content.

Supported Field Types

Divi Dynamic Content Extended adds dynamic content support for the following Pods field types:

  • Plain Text

  • Phone Number

  • Website

  • E-mail

  • Password

  • Date / Time

  • Date

  • Time

  • Number

  • Currency

  • File / Image / Video

  • Plain Paragraph Text

  • WYSIWYG (Visual Editor)

Some other field types may also work, but haven't been fully tested yet. If there's a particular field type you need support for that's not in the list above, please let me know in the comments below.

Setting up a Custom Settings Options Page in Pods

Let's first set up a Pods Custom Settings Page. This is where we will store the values we want to use in our Divi modules.

  1. First, download, install and activate the Pods plugin if you haven't already done so.
  2. Once activated, you will see a new "Pods Admin" menu item in the WordPress Dashboard. Click on this to open the Pods admin area.
  3. From the Pods admin area, click on the "Add New" button to create a new Pod.
  4. In the "Create New Pod" section, select "Custom Settings Page" as the Pod Content Type.
  5. Then give your settings page a Page Title and Menu Label.
  6. You can also choose where to place the menu item in the WordPress Dashboard. For now we will choose "Make a new menu item below Settings" to create a top-level menu item.

 Click "Next Step" to continue.

Now we are ready to add some fields to the custom settings page.

Adding and Displaying a Plain Text Field

Let's add a plain text field to the custom settings page, and then display it in a Divi module (the button module in this case).

 

Add a Plain Text Field to the Custom Settings Page

  1. Click on the 'Add Field' button to add a new field to the custom settings page.
  2. Fill in the field details. For this example, we will add a plain text field called 'Plain Text Field'.

Click 'Save New Field' then 'Save Pod' to save the field and custom settings page.

Enter a Value for the Field

You should now see the custom settings page in the WordPress admin menu:

Let's now fill out the field's value in our new custom settings page.

  1. Click on the 'My Settings Page' menu item to open the custom settings page.
  2. Fill in the field value. For this example, we will set the 'Plain Text Field' to 'My Plain Text'.
  3. Click the 'Save Changes' button to save the changes.

Add a Divi Button Module

Now let's create a button module that will display the field from our custom settings page.

  1. Open the Visual Builder.
  2. Add a Button module to page.

Select the Field using Dynamic Content

Open the Button module settings and hover over the 'Button Text' field to reveal the 'Dynamic Content' icon.

 Click the 'Dynamic Content' icon to open the dynamic content menu.

You should now see your Pods field included in the list of Dynamic Content fields:

 Click the field name to select it.

At this point, you can also set some additional properties such as text to go before and after it:

Save the dynamic content field settings.

You should now see that the dynamic content field has been set as the module option's value:

Save the module settings and the page.

View the Module

Now, if you view your page on the front-end, the button module text should now display the value from your Pods custom settings page, like so:

 When the details change, simply change them in the Pods Custom Settings page, and the changes will be reflected automatically in the module.

Do More with Divi Dynamic Content!

Enhance your site's flexibility with the Divi Dynamic Content Extended plugin. Unlock dynamic content on more module fields and access data from ACF, Meta Box, and Pods settings pages, making your Divi designs smarter and more efficient.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.