Gravity Forms shortcode in [if][else] results in string

[ad_1]

Hi @sunrv

You need to enable sub-shortcode support: https://docs.pods.io/code-snippets/enabling-shortcodes-pods-templates/

Cheers, Jory

Thread Starter
sunrv

(@sunrv)

Hi Jory,

Thank you for the reply. Sadly the provided solution hasn’t fixed my issue. I’ve done the following things:

Added this code in functions.php

<?php
/**
* Allow Pods Templates to use shortcodes
*
* NOTE: Will only work if the constant 
* PODS_SHORTCODE_ALLOW_SUB_SHORTCODES is defined and set to true, 
* which by default it IS NOT.
*/
add_filter( 'pods_shortcode', function( $tags )  {
  $tags[ 'shortcodes' ] = true;
  
  return $tags;
  
});

Added this code in wp-config.php

define('PODS_SHORTCODE_ALLOW_SUB_SHORTCODES',true);

I cleared the cache and did a hard reload for the page and it didn’t change the result on the page. Did I miss a step in the process?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer