Hi, html code is turned into regular text in caption intentionally. Right now there is no way to get around that.
However, you can output your own caption by adding a custom action. This is the PHP code. You can put this in your theme’s functions.php file or you can use a plugin into inject custom PHP code.
add_action( 'aesop_image_inner_inside_bottom', 'my_image_caption', 10, 2 );
function my_image_caption( $atts, $unique ) {
// do stuff here
echo '<a href="http://www.yahoo.com">YAHOO</a>"
}
You have to be careful that this would affect every image component. So you probably want to enter a logic in the function to do different things based on what the image or what the post id is. $atts[‘img’] holds the image URL.
-
This reply was modified 3 years, 5 months ago by
Hyun Supul.
-
This reply was modified 3 years, 5 months ago by
Hyun Supul.