• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty
Affordable VAST/VPAID for Wordpress has arrived. Serve ads with your videos starting today!

How to Show Recently Watched Videos with Elementor

30 January 2023 / Martin / Leave a Comment

FV Player can be configured to remember viewer’s position in each video. The setting is in wp-admin -> FV Player -> Settings -> Sitewide FV Player Defaults -> Remember video position. You can read full details of the feature here: How To Use Video Position Saving. This feature is even more powerful if you have a membership website as then your users can continue watching where they left off.

Besides the player remembering the position, you can also provide viewers with the list of watched or unfinished videos. Several use cases come to mind right away:

  • the viewer might start watching on mobile and then need to finish the video on their desktop computer,
  • the viewer is unsure which lesson or episode they watched last,
  • the viewer simply wants to go back to a video he/she enjoyed.

You can simply use this shortcode to get a simple list (read the full shortcode description here):

No watched videos.

But what if you want a great looking list that integrates with your theme?

Elementor is the most well-known and widely-used page builder out there. With its many modules, you can easily find a way of feeding a list of the post IDs to one of its post display widgets.

Here’s an usage example of how FV Player gives the watched video posts data to the Dynamic Posts widget:

Elementor’s Dynamic Posts widget with FV Player code

To make this happen, set the Query type of the Dynamic Posts widget to “Custom Query Code”:

Pick Custom Query Code option

Then put the following code in:

return array(
  'post__in' =>
    function_exists('fv_player_get_user_watched_post_ids') ? fv_player_get_user_watched_post_ids() : array(),
  'post_type' => 'any',
  'orderby' => 'post__in'
);

If needed, it can be adjusted to only show the videos which the user did not finish watching:

return array(
  'post__in' =>
    function_exists('fv_player_get_user_watched_post_ids') ? fv_player_get_user_watched_post_ids( array( 'include' => 'unfinished' ) ) : array(),
  'post_type' => 'any',
  'orderby' => 'post__in'
);

The code is a bit longer than we would like but the function_exists(...) part is necessary to ensure your theme does not break if you deactivate FV Player.

Full description of the PHP function can be found in our developer’s guide for Video Position Storing.

Martin Vicenik

Martin Viceník

Martin graduated as an engineer in Computer Science from Slovak Technical University in Bratislava. He grew up in Liptovský Mikuláš in northern Slovakia next to the beautiful Tatra mountains. He is the developer behind our FV Player.

Categories: FV Player, WordPress

Related Posts

  1. Video Position Saving

    Video Position Saving

  2. Is FV Player`s elementor widget able to pull the custom dynamic video url?

    Is FV Player`s elementor widget able to pull the custom dynamic video url?

  3. On Backend – Show only videos of current user

    On Backend – Show only videos of current user

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You can click here to Subscribe without commenting

Primary Sidebar

Categories

  • Business
  • Camera Reviews
  • Case Studies
  • Design
  • FV Player
  • Internet Marketing
  • IT
  • Life
  • SEO
  • Slovak
  • Video of the Week
  • WordPress

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!