This plugin was built for developers to swap out local post data with post data from a live site. Useful if you need to make some styling changes to post content but don’t want to pull in the live database. Simply enter the URL for the live site and turn on the API connection via the toggle provided.
All posts within the loop are replaced with posts from the URL you entered. This will change out the post title, post content, post excerpt and post date with the returned API data. This plugin will NOT replace your the post data in the database, but simply change out the data on the fly. To go back to your the posts saved locally simply uncheck the toggle switch on the settings page.
Post meta is used to store post IDs returned from the API call and matched up with the post IDs returned from your loop. This helps keep posts consistent across page loads. Single post pages will return the same post they were swapped out with in the main loop.
NOTE: This plugin requires the parent site (the live site) to be running at least WordPress Version 4.7.0 for the REST API to work properly.
- After plugin activation go to the plugin settings page by hovering over the “Settings” menu item in wp-admin.
- Click on the ‘Remote Post Swap’ link.
- Check the toggle box shown.
- Enter the URL to the live site you wish to pull posts from. This should be a valid URL.
- Turn on which post data you wish to replace (Post Title, Post Excerpt, Post Content, Post Date, Featured Images)
- Pull in author data.
- Pull in post comments.
- Installation Instructions
- Upload the
remote-post-swapdirectory to your
- Activate the plugin.
- Upload the
There are no reviews for this plugin.
Contributors & Developers
“Remote Post Swap” is open source software. The following people have contributed to this plugin.Contributors
- Major performance enhancements & code optimization
- Add in the ability to allow plugin users to choose which post data is swapped with remote post data (options page)
- Rewrite the admin classes to allow for separation of logic/display
- Add psr4 autoloader to autoload PHP classes without using require/include
- Separate the featured image functions from the replace-wp functions for better organization
- Re-wrote the replace-wp class to only make a maximum of 2 API calls per loop. (Performance enhancement)
- Initial Release