Use Shortcode in custom meta field
-
I would like a custom meta field to take shortcode as input and render the output but the field just returns the shortcode verbatim – is it possible to accept and render the shortcode.
This is my listing template code:
$listing_template .= "\t\t\t" . '<% if ( contact ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<p><%= contact %>' . __( 'CONTACT US', 'wpsl' ) . '</p>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n";
In the backend I am adding a Gravity form shortcode but it is not showing the form only the actual shortcode.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use Shortcode in custom meta field’ is closed to new replies.