Title: Odd template behavior
Last modified: April 3, 2023

---

# Odd template behavior

 *  Resolved [wpress2010](https://wordpress.org/support/users/wpress2010/)
 * (@wpress2010)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/odd-template-behavior/)
 * I am using a Pods template to display some info, just getting going, but have
   done this several times before. Divi theme. I am finding that somehow the Date
   type of field, when called in the template, is displaying multiple times! Here
   is an example where a “default” date field with today’s date appears TWICE above
   the <h2> element, as well as once below it, where it belongs. The date field 
   set in the actual Pod itself is different, and only appears correctly below the
   <h2>. Anyone know why this should happen?
 *     ```wp-block-code
       <h2>{@apartment_name}</h2><p class="adate">{@avail_date}</p>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fodd-template-behavior%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/odd-template-behavior/#post-16625334)
 * Hi [@wpress2010](https://wordpress.org/support/users/wpress2010/)
 * Since you use Divi it’s only guessing for me but it could be that it’s called
   from several locations. Are you also using auto-templates?
 * Can you share some code? Or maybe even point us to the actual page?
 * Cheers, Jory
 *  Thread Starter [wpress2010](https://wordpress.org/support/users/wpress2010/)
 * (@wpress2010)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/odd-template-behavior/#post-16626463)
 * Divi’s Code module has no problem rendering Pods shortcodes. I found that my 
   problem was that somehow I had checked the box on the template that said “Show
   to admins only”. Once I unchecked it, the template displayed the correct contents
   within the Divi Code module. Oddly enough, I also found a reference on the Web
   for inserting some code into the wp-config and functions.php files that allegedly
   make Pods work with Divi, but even though that reference was fairly recent, I
   found that it did not work anyhow.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/odd-template-behavior/#post-16632378)
 * > I also found a reference on the Web for inserting some code into the wp-config
   > and functions.php files that allegedly make Pods work with Divi, but even though
   > that reference was fairly recent, I found that it did not work anyhow.
 * I am unaware of this config update, do you have a link for me?
 * Cheers, Jory
 *  Thread Starter [wpress2010](https://wordpress.org/support/users/wpress2010/)
 * (@wpress2010)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/odd-template-behavior/#post-16633801)
 * Here’s one that is apparently not correct – when I experimented with it, it just
   borked the site.
 * [https://tolmiesystems.com.au/allow-pods-templates-to-use-shortcodes/](https://tolmiesystems.com.au/allow-pods-templates-to-use-shortcodes/)
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/odd-template-behavior/#post-16633857)
 * This is indeed something different and definitely should not be put into `wp-
   config.php` !
 * It should be added into the theme functions.php as mentioned in the text above.
   Only the constants should be defined in the config file.
 * Then again, you probably do not need this feature unless you plan on using shortcodes
   within shortcodes.
 * Cheers, Jory

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Odd template behavior’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [template](https://wordpress.org/support/topic-tag/template/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/odd-template-behavior/#post-16633857)
 * Status: resolved