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

Foliovision

  • 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 *

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 © 2026 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‬