T
T
TCloud2018-09-09 16:01:39
CMS
TCloud, 2018-09-09 16:01:39

How to attach a video to a WordPress post so that you can later get a link via the_header_video_url()?

How to attach a video to a WordPress post so that you can later get a link via the_header_video_url()?
Tell me if I don’t understand something, I want to get the url through the_header_video_url () how can I implement this?
It is necessary to dynamically load the url of each post, poked around wp-kama, nothing happened ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Yanchevsky, 2018-09-09
@OTCloud

the_header_video_url is for the topic, not for posts. With this function, you can get the video that you attached in the theme settings. It will be one. Read more .
If you want to add a video for each entry, you can use Advanced Custom Fields . There is a video field for it on github .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question