I ended create another custom post type to manage the schedule and I created a relation to the existing films custom post type:
– Films (all films without tv guide)
– TV schedule (each post represents time in the tv guide and can only be related to one movie). I then enabled future posts to be displayed, this allowed me to use the default post date to so re-arrange the schedule. The default post date also allowed me to expire posts older than 30 days easily.
I plan to write the functionality into a plugin for anyone who might be interested. I will come back and update this.
Related Posts:
- Loop order issue with Ajax filter
- AJAX with loop filtering categories
- How to order posts tag by tag?
- How can I custom order the results from wp_list_categories?
- Sorting Woocommerce products with numeric titles [closed]
- Exclude filter on front page
- Filtering The Loop For Single Page and Blog Page
- Sort Posts By Category?
- Custom search form to display users only
- wordpress change the loop order by dynamic value
- How to order posts by meta_value created inside loop?
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- How to get_posts where ‘menu_order’ is more than 0/zero?
- Query posts if meta key starts with
- How to return only one instance of each, from the entire loop
- Query reset problem or flawed code to enable custom post type query
- Combining action and filter?
- Filter the loop by categories using checkbox form
- Filter the_posts doesn’t work on search page
- How to check if a product is purchased within the last 365 days before displaying something
- Trying to get property of non-object in shortocde
- Make a loop to return x number of posts, but only if they have content or excerpt
- Filter existing hook using parameter and foreach loop
- Filtering by multiple conditions in the loop
- Ascending order has strange effects on wordpress loop
- Add Search and Filter functionality to custom loop
- Loop random posts and display odd and even based on two alternating meta values?
- Reorder posts in a loop: have the posts by one particular author below the others
- How to filter get previous post function by meta value DESC and post date DESC?
- Remove posts_orderby filter then add it back in
- Buddypress Group Activity Loop Filter activity type [closed]
- get_posts and wp_autop (remove filter)
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- Applying a filter to multiple loops for days ago
- WordPress Not Sorting By Custom Field
- How to use orderby on meta_value when using Pods custom database table storage
- How to make FSE’s query loop to order by comments number?
- Excerpt isn’t working or am I missing something?
- How to append the excerpt to the content in the single post page?
- Can I temporarily disable global $post?
- How to manually define the primary loop
- Shortcode for pulling specific Post Title outside loop when ID is passed in
- Slug is changing when I use WP_Query in a metabox of a post
- Url outside the loop
- Transient not working for external data
- Show a list of user posts in the user admin page
- Put data in my-account/view-order/id/ page
- Return only one post format in index.php [duplicate]
- How to order posts, that have already been filtered by custom taxonomy, by their category names?
- How to display just video post format?
- Show other category posts in single.php
- Why does it loop twice?
- How to execute a user loop with shortcode
- Is it possible to get a post ID of a 2 different custom post types loop embedded in the same post to perform update_post_meta from the frontend?
- Deeply Nested Menu Loop with Twig using Timber [closed]
- how to get author comment inside the loop?
- How to create loop in custom page, and get id from url into this loop?
- Adding comma to while loop wpquery output
- How to fix pagination for custom loops?
- Check to see if a field is within an array in twig
- Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken
- Search – Check if post is a page on search page
- Multiple loops in set intervals with code in between
- Homepage Loop Somehow Breaks Styling Of Post Grid
- adding tax_query to $query_string
- WP_Query doesn’t works inside loop
- Only seems to be displaying one child when there are supposed to be multiple
- Custom loop not working in singular.php, working in other pages
- Display three sequential posts on each page load, without repeating previous
- Loop Posts Outside of WordPress Installation
- WordPress with woocommerce custom query
- Create an archive page(loop) for edd products (music files) with an audio player?
- WordPress Pages in an Array
- Loop shows post 5 times in a query
- Get featured image outside the loop using foreach
- Get Sticky User in user loop based on user role
- Popular posts with Varnish ESI
- Querying posts from only one category and exluding the latest post
- Attachment Metadata inside of Loop
- How can I make this iterative conditional within the Loop work via function?
- Posts Per Page is Not Returning Correct Number
- Infinite Loop after Genesis Theme Upgrade
- Modify widget to output posts in custom order
- Alternative layout the loop
- Why loop renders only last metabox from array? [closed]
- Cant pull in featured Image
- How to execute custom loop before loop content?
- Page gets displayed in post field
- Repeat code, change variable?
- the_content() keeps repeating itself
- Custom Looping of WordPress Posts
- Configure query with multiple categories in a custom order?
- Foreach loop inside foreach loop?
- Show different Google Map markers for different post_meta values
- how to place Post and page content side by side
- Show posts by tags excluding current post
- Add specific class to featured posts
- Adding options to loop
- Make custom WordPress comments list
- numberposts not responding to wp_reset_postdata()