Hi Jamal,
With reference to our last support ticket - https://toolset.com/forums/topic/updating-transcoded-video-filenpath-reference/#post-1976525
Many apologies, after testing last night I’ve noticed that, whilst the video now works, I’m getting the same video on each page (the latest upload). Would this be down to the ID being passed?
Sorry! You’ve gone above and beyond th scallops of duty on this one.
Kind regards
James
Hello and thank you for contacting the Toolset support.
As I am still logged in to your website, I tried to find what view you are talking about. This page displays only one video hidden link
I checked several other pages but I could not find a page that displays the same video multiple times.
Can you tell me where I can see the issue?
Hi Jamal,
Many thanks for jumping on this so quickly (and at the weekend!).
If you login as a user. For example:
UN: golfer
PW: golfer#test
and go to My Videos, you'll see two videos; one of a train and one of a deer. If you click on either video, you'll only see the deer (as that was uploaded last).
SO the single video pages only seem to show the last video posted, not the correct video for that post.
I look forward to your thoughts.
Kind regards
James
Hello James,
From what I gathered so far, you have used a view inside an Elementor template that should display a single post. Because the view is limited to display only one post, it displays the same video for all posts' single page. That's not how it should be done.
Note that views are meant to display a list of posts and content template are meant to display only one post. That's why we use a content template inside the loop of a view, in order to display each post from the view's result.
I was able to make it work by using an intermediate content template. You can edit it here hidden link
<video class="single-video" controls="" autoplay="">
<source src="[types field='video-upload' output='raw'][/types]">
</video>
Then I used this content template with a shortcode inside the Elementor single post template. Check this screenshot hidden link
[wpv-post-body view_template="video-post-video-upload-player"]
I hope this helps. Let me know if you have any questions.
Many thanks Jamal. Once again, you've solved my problem! Have a great weekend.
Best regards
James