Youtube To Mp3

FREEMIUM
By Prasadbro | Updated a year ago | Data
Popularity

8.3 / 10

Latency

4,324ms

Service Level

100%

Back to All Discussions

get download_url inside <a> (Wordpress)

avatar
renatamixcom
2 years ago

(Wordpress) I’m using Woody Snippets to run cURL and it’s working perfectly via shortcode.

I managed to get the "$response" but it is returning all 6 strings.

I would like to print only the "download_url" inside a <a> tag.

That alone is good. But if possible, supplement with this information:

The video id is inside an acf_field. If possible, illustrate how I can integrate "the_field" here:

CURLOPT_URL => "https://youtube-to-mp32.p.rapidapi.com/yt_to_mp3?video_id=(ACF_TEXT_FIELD_HERE)"

avatar
Prasadbro commented 2 years ago

Sorry fore late reply , i really dont have any idea about php and wordpress but rapidapi provide you code snippets for all languages all you need to do is get responce parse it and integrate download link in a tag.

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 5 - Votes: 1