Home › Forums › CSS › Get the URL from the image I inserted in the HTML Editor. › Re: Get the URL from the image I inserted in the HTML Editor.
August 20, 2012 at 11:06 pm
#108237
wolfcry911
Participant
Not a wordpress guy, but try this:
if( function_exists( 'attachments_get_attachments' ) )
{
$attachments = attachments_get_attachments();
$total_attachments = count( $attachments );
if( $total_attachments ) : ?>
Process:
if ( has_post_thumbnail()) {
$large_image_url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
echo '- ';
echo '1';
}
?>
- ">