Title: Remote Post Swap
Author: TyB
Published: <strong>14 ເມສາ 2017</strong>
Last modified: 17 ເມສາ 2017

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/remote-post-swap/assets/icon-128x128.jpeg?rev=1637293)

# Remote Post Swap

 ໂດຍ [TyB](https://profiles.wordpress.org/tyb/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/remote-post-swap.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/remote-post-swap/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/remote-post-swap/#reviews)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/remote-post-swap/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/remote-post-swap/)

## ຄຳອະທິບາຍ

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.

### Usage

 1. After plugin activation go to the plugin settings page by hovering over the “Settings”
    menu item in wp-admin.
 2. Click on the ‘Remote Post Swap’ link.
 3. Check the toggle box shown.
 4. Enter the URL to the live site you wish to pull posts from. This should be a valid
    URL.
 5. Turn on which post data you wish to replace (Post Title, Post Excerpt, Post Content,
    Post Date, Featured Images)

### To Do

 1. Pull in author data.
 2. Pull in post comments.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

  Installation Instructions

 1. Upload the `remote-post-swap` directory to your `/wp-content/plugins/` directory.
 2. Activate the plugin.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Remote Post Swap” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ TyB ](https://profiles.wordpress.org/tyb/)

[ແປ “Remote Post Swap” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/remote-post-swap)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/remote-post-swap/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/remote-post-swap/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/remote-post-swap/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/remote-post-swap/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 0.8.0

 * Major performance enhancements & code optimization

#### 0.7.0

 * 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

#### 0.6.0

 * Re-wrote the replace-wp class to only make a maximum of 2 API calls per loop.(
   Performance enhancement)

#### 0.5.0

 * Initial Release

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.8.0**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **9 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **ໜ້ອຍກວ່າ 10**
 *  ເວີຊັນ WordPress ** 4.7.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.7.37**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/remote-post-swap/)
 * ແທັກ
 * [database](https://lo.wordpress.org/plugins/tags/database/)[posts](https://lo.wordpress.org/plugins/tags/posts/)
   [remote](https://lo.wordpress.org/plugins/tags/remote/)[swap](https://lo.wordpress.org/plugins/tags/swap/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/remote-post-swap/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/remote-post-swap/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/remote-post-swap/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ TyB ](https://profiles.wordpress.org/tyb/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/remote-post-swap/)