After the page is created and you have its ID, and before you restore_current_blog() you do this:
update_post_meta( $page_id, '_wp_page_template', 'your-template-file.php' );
Related Posts:
- How to *remove* a parent theme page template from a child theme?
- Can we use one WordPress installation for multiple databases, domains and content directories
- How to Change 404 page title
- .maintenance and maintenance.php also in multisite install?
- How to redirect WordPress home page to custom static HTML page
- How can I create an alternative home page?
- global menus made from master site’s custom menus wpmu network
- Can You Export Theme Settings From WordPress Multisite?
- WordPress Multi Site Best Practice
- page_template toggle between 2 templates + 2 permalinks for same post
- How to run a test WordPressMu to WordPress3 update?
- Suggestions for WPMU Migration (advanced)
- WordPress Network Feature
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- How do I deque the default stylesheet?
- Custom column under All Users (multisite network admin)?
- Syncing Avatars across multisite
- Why would switch_to_blog stop working?
- Woocommerce Product page edit
- For custom templates, is it better to use `template_include` or `type_template`?
- Override database config for WordPress multiblog
- How to insert a sitemap within a subsite when using WordPress multisite
- Add custom user profile field to default WordPress MultiSite registration form
- Turn off redirect to canonical domain (or host website on any hostname)
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- What changes we need to make to a theme so it can be installed as a MU Theme?
- Multi Site installation inside a sub domain inside a sub directory
- Showcase elementor templates
- Create custom dashboard for Multisite admins
- need help with a user-specific custom page template
- Prepopulating a specific page template with HTML/CSS
- One WordPress Installation for 2 Domains
- custom meta box for page default template
- How can I create a second multisite network in a subdirectory?
- Manage multiple domains from one backend
- Static admin page for all multisite users
- List top 5 authors with most posts
- One WordPress install for main site at domain.com and blog at blog.domain.com?
- What is the best way to move a single site from one MS installation to another? [duplicate]
- Multi-site User Sessions
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- What happens to the mu-plugins folder when you upgrade to WordPress 3?
- In WordPress 3.x, I can’t access posts from all blogs in the network
- I w’d like to know If there are simple solutions to integrate other CMSs to wordpress
- Add the site’s name as prefix when adding new users? Multisite
- How to create custom search page
- Open “Visit site” in a new window?
- Allow multisite admins only to create users with one specific user role?
- Prevent Multisite from creating sample page, sample post and sample comments
- WordPress archive index page
- How to have multiple WordPress Menus
- How to create a custom WordPress front page
- Custom Same Page Search
- change top banner content on specific page
- How to set up conditionals in page templates?
- How To make Custom page of every Category
- Remove Sidebars from page
- Create new network instance, import old single installs AND keep the urls?
- How to do multi site setup
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- how or where wordress collect unlogged user session
- Global theme customization multisite
- Multisite with subdirectories, and a WordPress installation in a custom folder
- website is not loading home page (moving from one server to another server)
- Product page not found if product data is set Appointment Service
- Is MultiSite the Correct Solution for a Corporate Site with Searchable Regions?
- Page with some post value id showing page not found
- How should I design subcategory login site?
- Why does a custom php code inside a custom template not get executed?
- How to have differents sites share the same tables of DB?
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Add button to My Sites dashboard page (multisite)?
- Get site ID from attachment url?
- Custom stylesheet not loading
- Displaying Child Page’s Information
- Multi-site customization
- Adding pages to the Admin panel
- Setting Custom WordPress “Posts page” AS “Front page”
- Page template with custom html fields inside a content
- Single page template
- Adding page Title in a custom coded page
- use another theme for just one page
- How to: Easily Move a WordPress Install from Development to Production?
- Is there a flowchart for WordPress loading sequence?
- Essential technical features for high-end WordPress web hosting? [closed]
- How to remove admin menu pages inserted by plugins?
- How to put logs in WordPress
- How to get the Date Format and Time Format settings for use in my template?
- How To Add Custom Form Fields To The User Profile Page?
- Where are Additional CSS files stored
- Best Practices for Regression Testing WordPress Websites?
- Remove wrapping div and ul from output of wp_nav_menu
- What Is The Use Of map_meta_cap Filter?
- get post author id outside loop
- Custom Walker: how to get ID in function start_lvl
- Creative uses of WordPress [closed]
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- Multiple Inputs in a Customizer Control
- New WP_Customize API – how does it work under the hood?
- Embedding a SOAP Client into a WordPress Plugin?