• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RESOLVED Accessing attributes in a snippet

Messages
3
Likes
0
Points
1
#1
Hello-

I'm receiving this error when trying to display an attribute in a Universal OR PHP Snippet

PHP:
Notice: Undefined variable: testParam in /Users/natezander/Sites/testsite.org/wp-content/plugins/insert-php/includes/shortcodes/shortcode-universal.php(53) : eval()’d code on line 36
I simply wrap the attribute in PHP tags

PHP:
<?= $testParam; ?>
Any ideas?
 
Last edited:

Temyk

Developer & Support
Staff member
Messages
742
Likes
32
Points
28
#3
Hello.

1604296337854.png


Show us how you use the shortcode?