You could create a function with a query that gets all posts older than a certain date, loop through the posts and set your archive variable. If you call that function with a custom action hook like this add_action( 'my_daily_archive_cronjob', 'archive_old_pages' )
you can trigger it daily with this plugin: WP Crontrol.
Related Posts:
- How to display by default only published posts/pages in the admin area?
- Admin – create custom post status and display above table
- Using single.php from plugin folder instead of default template folder
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- Static posts page with home.php
- Pagination not working on Custom Page Template
- Overview with latest edited posts and pages
- Hiding by default specific post status on backend list?
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- How to get a nofication when post submitted
- Is there any WordPress alternative to Book module of Drupal?
- Posts vs. Pages
- Adding buttons to Add New Post and Add New Page
- WP Admin register taxonomy and post type performance
- Static posts page with home.php
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- disable Tab post on nav-menus page (Admin)
- How to detect when admin user is on the All Posts page?
- WordPress Query Posts From Category Post on Static Page
- How to add convenient buttons for new custom post statuses
- I don’t want the complete article to show on homepage
- Organization of time insensitive content
- What would causes search to return incorrect results?
- Changing permalink of WordPress
- Added a ACF field to custom page and want the results to show as a column in admin
- Show post count in custom taxonomy page
- Hide or remove custom post status
- post and page and custom post type
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Permalink base only for posts
- Hide Admin posts & pages in Dashboard
- Creating widget – ask for selecting a post in the admin panel
- issue in wordpress auto delete post and redirect to another 1
- Allow users to create their own page/s
- Make a custom URL and link to custom Template
- Choose options via url
- Automatically delete default posts and pages on theme install?
- How to have more post in a page than in your home page
- custom post type single page template not working
- How to have 2 posting pages on a blog
- Post Format Status [closed]
- Edit Page button is gone
- Manual Scheduler For Custom Post Type
- WordPress Delete Users from backend doesn’t work
- Show code only on WooCommerce Pages
- Custom Post Type Rewrite URL
- Disable pagination in posts and pages
- Dev and prod on the same database- dev version active for IOS
- Is it possible to make a custom post that adds multiple pages?
- Custom Post Types and Broken Permalinks
- Page with Category Returning 1
- Single Sidebar; multiple templates! How?
- The first post appears twice
- How to delete/customize imported demo content from a theme or add my own?
- Loop through taxonomies and loop through their terms (Newbie question)
- Count posts for pagination
- My posts page is missing the page title
- Hiding title of selected post without plugins
- Very weird behaviour after removing WP pages
- Custom permalink for wordpress page / post
- Multiple Pages – Seperate blogs
- Custom post styling per category?
- problem with admin panel
- Using WP page password protection as defacto login
- How to add post under particular pages? Like website.com/page1/post1
- I lost the link to my posts in my menu bar
- calling pages instead of posts
- Category URL to use same string as Post URL Permalink
- Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404
- WordPress display page information rather than post
- Post Category link is same with Page link
- Show custom post category for single post
- How can change header text in post careate/edit form
- WordPress for business site
- How to get meta data from custom category name
- Ajax the create and edit post form into lightbox and get results
- Add Categories To Custom Post
- Get content and send to 3rd party
- Posts on Sidebar only
- Is it possible to query a category with specified posts?
- How do I make it so that new posts within a certain category go into a certain page?
- Posts are not showing up on next page.
- how to redirect page after delete post inside a post page?
- Custom post type – Loop out in random order but same 15 to appear first… still random
- Modify loop to include all post statuses not just ‘published’
- Custom post type template not called
- Difference between modified post and new post
- Displaying dynamic content (blog posts/portfolio) on a static homepage and keep the blog post styles
- How to give priority to page than to posts permalink structure?
- How to use Categories of custom post type
- Append a random string to a post permalink
- Precedence of page permalinks over woocommerce product category links?
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- Admin menu disable new/delete page
- One Post with different content, depending on a Page
- WordPress URL question
- Multiple Custom Post Type loop logic
- WordPress search for specific Post Type
- Show Posts By Custom Field