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; ?>
More Related Contents:
- WordPress or building site on own? Which is more cost efficient?
- Countdown that can mix various times
- Load More Posts Ajax Button in WordPress
- How to call ajax in WordPress
- Hook AJAX in WordPress
- Countdown in javascript, database and php
- jQuery append function is just appending the html but not the classes related to it
- Updating php values using jquery
- How to Protect website code PHP / JS? [closed]
- Sending Variable From Php To Js [duplicate]
- view php msg in alert javascript [duplicate]
- How to get 100% ADA compliance result in accessibility checker website https://webaccessibility.com? [closed]
- HTML Form Submit pass array to PHP [closed]
- How To Display Images Preview and Title When I Paste in Another Site Like Facebook, Whatsapp, etc
- how i can connect and login in mysql localhost in php by using this html code
- How to receive special character?
- How to detect user’s timezone?
- Execute PHP function with onclick
- Webhoster inserts a javascript which brokes my code how to remove it?
- Populating a select box using JQUERY, AJAX and PHP
- Ajax file upload
- Encrypt in Javascript, decrypt in PHP, using public-key cryptography
- how to Execute PhantomJS from PHP
- Passing JSON data from php to html-data attribute and then to Javascript
- Send form data using ajax
- How to keep elements non-refreshed
- Unsigned Right Shift / Zero-fill Right Shift / >>> in PHP (Java/JavaScript equivalent)
- XMLHttpRequest; Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource [duplicate]
- How do I put this on Real-Time? I already put (async: True) but it doesnt work
- How to replace the entire html webpage with ajax response?