You can bring the post data and term data over via the REST API, but you still have to register custom post types and custom taxonomies on the other site.
Likewise the REST API doesn’t provide you with permalink settings or theme templates, those need to be provided on the other site too.
You’re responsible for setting up the slug/permalink structure on site 2, that’s not data you can just pull from the REST API. You also need to set up the templates and assign them in your code or do it manually.
Ideally, you pull the data in from the REST API by making a request, then store that data by creating a post and giving it the same properties and content as the original. The REST API is just an API for exposing data, the actual processing and retrieval of that data is still up to you, as is how it’s displayed.
Related Posts:
- How to use WP-REST API to login user and get user data for Android app?
- Getting user meta data from WP REST API
- WP REST API returns blank response if post is too long
- Increase per_page limit in REST API
- How to feed a HTML5’s EventSource with a REST API custom endpoint?
- Retrieve CSS and JS From the REST API
- How to Authenticate WP REST API with JWT Authentication using Fetch API
- WordPress 4.7 REST API endpoints
- REST API multiple media upload
- Can’t send emails through REST API
- 401 Error when trying to make a REST API call to site
- Does jQuery/Ajax send cookies when using the rest API or do I need to somehow add them?
- How to login to WordPress site using basic authentication HTTP headers?
- Can we access the REST request parameters from within the permission_callback to enforce a 401 by returning false?
- Upload image to wordpress using REST API
- Can I define multiple callback methods depending on the call method?
- Filter post content in REST API
- Formating content rendered from wordpress REST API as JSON and not HTML
- How to filter users on custom meta fields in WP JSON v2?
- How can I return an image from a custom REST API endpoint?
- How add meta fields to a user with the wp-api?
- WordPress Rest API response
- Check Password Strength using WordPress API
- Send request to WordPress REST API
- Request to REST endpoint works fine in browser and curl, but fails from WP_REST_Request
- WP REST api.wordpress.org discovery
- Rest API in integration tests – filtering by slug not working?
- Why does AWStats show /wp-json* as Viewed URLs
- How send get request to external api with username and password
- permission_callback has no effect
- Updating link on page via REST api
- How to order WordPress Rest API data
- WP Rest API – How to convert embedded to json object in Java [closed]
- featured image not found in json from wp rest api
- WP REST API – Nonce passes wp_verify_nonce even after logout
- WP REST API plugin 500 errors?
- wp-cli command throws error : “SSL routines:tls_process_server_certificate:certificate verify failed” while querying https website
- Setting maintenance mode via REST API
- How to receive data by http POST request
- rendering view in backbone
- WP API querying a custom post type and a custom field
- Custom endpoint to get all custom taxonomy terms
- Notify Jenkins of new post on WordPress
- Curl requests sent two times
- Manipulating/view postmeta remotely
- Check authentication credentials using WP REST API
- How to get author meta into post endpoint in api v2
- WordPress REST API V2: how to get list of all posts?
- Getting 401 from ajax using an application password
- How to connect android app with WordPress website?
- WordPress REST API calls that depend on the WordPress User
- Register GET REST API route with multiple parameters
- Making internal rest requests non-blocking?
- How to include file attachment in ajax submission via the rest_api?
- WordPress HTTP API NTLM Authentication
- WordPress REST API parameters are not affecting a response
- How To Bulk Import wp_postmeta records in an API call?
- Rest API in self-hosted page doesn’t work [closed]
- Update meta_value in wp_postmeta using API
- WordPress custom REST API: How to validate input data by many context?
- Authenticate rest API except for contact-form-7
- How to access wordpress menu & submenu item through the REST API?
- WordPress Rest API- Allow creation of users with identical email addresses when only using rest api
- Inspecting WP_Rest_Request
- WordPress API fields modification
- REST API – Allow /users endpoint depending on a custom capability
- “Error: cURL error 60: SSL certificate problem: certificate has expired” when create product in WooCommerce via REST API
- How to use WordPress REST api to login a user?
- Can I overwrite default WordPress Json API For no more pages text
- Secure WordPress API, how?
- Create User with Profile and Cover Images using REST API
- Wrong encoding of dynamic block properties problem when loggen in as editor
- Media gallery images url instead of ID on WP API
- What’s the right way to validate JSON data coming from an AJAX POST request?
- Need wp rest api for featured video post
- WordPress API “code”:”rest_no_route” with Custom Route
- WordPress Update Role using API Cross site
- Rest API. Post content
- REST api header link href
- Error rest_post_invalid_page_number trying to call Rest API
- WordPress & React Native
- Is it possible to combine two rest endpoints in the url?
- update meta data (like view counter) by rest-api
- Rest API hook ‘rest_insert_post’ not returning request object
- How Can I keep password protected posts in the json requests but not on frontend queries?
- How to use WordPress rest API with Angularjs 4 [closed]
- Retrieve posts by page in wp rest api
- How to change WordPress api v2
- REST API Integration without user account?
- Update post / page using API + python
- Calling a Rest API with parameters on button Click
- How to cache WordPress oembed links in the page header?
- REST API – Authentication/Logon security
- WordPress json – How to use the content rendered from json
- Subscriber role cann’t add comment meta using REST API
- Restrict Image Sizes and Dimensions when Uploading via the WP Mobile App
- Can I use the Backbone REST API client outside WordPress?
- WordPress REST API function not calling from external site
- Issue with API after 6.2 update
- Verify user login and password over api