How to input php as url in javascript

your code seems correct!

$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );

Im using the same for the jwplayer.

But <?php echo $url ?> is wrong use <?php echo $url; ?>

Leave a Comment