[WordPress] 外掛分享: Remote Post Swap

前言介紹

  • 這款 WordPress 外掛「Remote Post Swap」是 2017-04-13 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2017-04-17,距離現在已有 2938 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.7.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tyb |

外掛標籤

swap | posts | remote | database | post swap |

內容簡介

這個外掛是為開發人員打造的,可用於以實際網站文章資料取代本地文章資料。如果您需要對文章內容進行某些樣式更改,但不想拉取實際資料庫,則此工具十分有用。只需輸入實際網站的網址,並通過提供的切換打開 API 連接即可。

迴圈中的所有文章都將被替換為您所輸入的網址中的文章。這將用回傳的 API 資料更改文章標題,文章內容,文章摘要和文章日期。這個外掛不會替換資料庫中的文章資料,而只是即時更改資料。要返回本地保存的文章,只需在設定頁面上取消切換開關的選中。

文章元數據用於存儲從 API 調用返回的文章 ID 索引,並匹配循環返回的文章 ID。這有助於在頁面加載時保持文章一致。單獨文章頁將返回在主循環中替換為其的相同文章。

注意:此外掛需要母網站(實際網站)至少運行 WordPress 版本4.7.0,以便 REST API 正常運作。

使用方法

外掛啟用後,將滑鼠懸停在 wp-admin 的“設置”菜單項上,然後轉到外掛設置頁面。
點擊“遠程文章交換”鏈接。
選中顯示的切換框。
輸入您要從中拉取文章的實際網站的 URL。此 URL 必須是有效的。
打開您希望替換的文章資料(文章標題、文章摘要、文章內容、文章日期、特色圖像)。

待辦事項

調用作者資料。
調用文章評論資料。

原文外掛簡介

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

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)

To Do

Pull in author data.
Pull in post comments.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Remote Post Swap」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Menu Swapper 》菜單交換器(Menu Swapper)提供兩個實用工具:, , , 設置頁面,允許您註冊無限菜單主題位置。, , , 一個元框(meta box),它會出現在頁面和文章上,允許您...。
  • Member Swipe for BuddyPress 》透過滑動觸控裝置上的手指或桌面上的滑鼠點擊輕鬆地瀏覽您的 BuddyPress 成員。, 您只需加入專用的 Gutenberg 區塊「Swipe Directory」,就可以輕鬆地在任何...。
  • WPC Product Image Swap for WooCommerce

    外掛總結:

    ,
      ,
    • WPC Product Image Swap 能夠強化圖片的力量,以視覺引人入勝的方式向顧客展示商品。
    • , &...。
    • Cryout Theme Switch 》快速輕鬆地切換不同的佈景主題。此外掛會在 WordPress 後台管理列中添加一個主題切換器,內含所有父子佈景主題的篩選列表及常用佈景主題列表。與 WordPress 4...。
    • Hoverswap 》在我的語言學習部落格中,我有一個功能,可以在滑鼠滑過時通過交換文本顯示內聯翻譯。這非常方便,我想讓它成為一個外掛,讓其他人也可以使用!, Hoverswap ...。

文章
Filter
Apply Filters
Mastodon