Showing an image using an EM custom attribute
-
I am using shortcodes that display user meta information in WP posts and pages. I can use this shortcode within the tinyMCE classic editor content box to display a UM user cover photo: [um_profile_info type=”image” meta_key=”cover_photo” width=”400″ user_id=”nn”]artist cover photo[/um_profile_info], where nn is the wp user id.
However when I try to put this into a EM custom attribute, the image does not display.
I am able to use similar shortcodes with custom attributes to show other information, including a map (using leaflet plugin OSM shortcodes) and text.The single location formatting that I’m using for the attribute is,
<section class="em-event-artist">
<h3>Featuring: #_ATT{show_name}</h3>
</section>
<section>
<br>#_ATT{ARTISTIMAGE}<br><br>
<h3>
What?
</h3>
#_ATT{EVENTDESCRIPTION}
</section><br>The other attributes work OK but not #_ATT{ARTISTIMAGE}, which displays in the event post editor as a box like the other attributes but doesn’t come through to the published event post.
- You must be logged in to reply to this topic.