• Resolved wpress2010

    (@wpress2010)


    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?

    <h2>{@apartment_name}</h2><p class="adate">{@avail_date}</p>
    
    

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @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

    (@wpress2010)

    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

    (@keraweb)

    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

    (@wpress2010)

    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/

    Plugin Author Jory Hogeveen

    (@keraweb)

    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.