Custom Attribute Shortcode suddenly not working
-
I’m just dealing with an issue I can’t fathom. The solution for obrtaining an email address from shortcode attributes worked perfectly for a few days. Now something has changed (probably) and I can’t get the value through.
I have used the shortcode inside a custom post and was getting the email from the post.
Now when I try I get blank input field on the front end. Perhaps someone can see, what’s going wrong.$artist_email = gdlr_get_portfolio_info(array('artist-email'), $gdlr_post_option, false); echo do_shortcode( '[contact-form-7 id="16" title="Artist Booking Form - do not delete" artist-email=" '. $artist_email .' "]' );
When I simply echo the variable $artist_email I can see it no problem. I can even see the first character if I do:
echo do_shortcode( '[contact-form-7 id="16" title="Artist Booking Form - do not delete" artist-email=" '. $artist_email[0] .' "]' );
But not the complete address. What gives?
- The topic ‘Custom Attribute Shortcode suddenly not working’ is closed to new replies.