Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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.

#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
    ';
    }
    ?>

  • ">