Skip Navigation

[Resolved] How to display embedded video as a recent post

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Joe H. 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#564007

Tell us what you are trying to do?

Like many themes, my theme has a 'recent post' element that allows me to place a link w/image to the most recent post (made with Types) into a page. What I want to do is not to link to the CPT post itself, but instead to display the embedded video from the recent post.

So at the top of my page, I'd like to have a video player that always displays the video from whatever post is the most recent post. The video URL changes each week as a new post is added.

I'm sure there are other plugins that can do this but since I am already using Toolset I want to use it for this if possible.

My CPT is called 'sermons', and each sermon post has a vimeo video URL. I am trying to create a landing page where all the sermon series (taxonomy with images) are displayed, and above this I'd like the most recent sermon video. This way users can watch the current video for that week on that page, or they can choose a past series and click to view the posts within that series.

Can you point me in the right direction?

#564131

Dear Joe,

Since the 'recent post' element is created/setup by your theme, Toolset plugins can not modify it, so I suggest you create a view to replace the 'recent post' element.

For example, you can create a view to list "sermons" posts, order by the publish time,
https://toolset.com/home/views-create-elegant-displays-for-your-content/
and in the loop, display the custom embedded media field with Types shortcode:
https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media
Or custom video field:
https://toolset.com/documentation/customizing-sites-using-php/functions/#video

#564509

Thanks, that makes sense. I'll give that a try.

The forum ‘Types Community Support’ is closed to new topics and replies.