Hello @aktivist,
I’m glad the plugin helped you.
If you want to get an attached image, you can use something like this:
<?= dco_ca()->display_attachment(''); ?>
If you need to get exactly the image url, then try this:
<?php
$attachment_id = dco_ca()->get_attachment_id();
$url = wp_get_attachment_url( $attachment_id );
echo $url;
?>
Thanks a million, Denis! С новым годом!
I also did solve it with such a snippet:
echo wp_get_attachment_image( get_comment_meta( $comment->comment_ID, 'attachment_id', true ), $thumbnail_size );
(@aktivist)
4 years, 3 months ago
Hi! Thanks for awesome plugin!
Can you help me with getting the attached image in a custom template via php similar to
echo get_comment_meta( $comment->comment_ID, 'custom_field', true );
TIA