[WordPress] 外掛分享: WPG2Mod

WordPress 外掛 WPG2Mod 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WPG2Mod」是 2019-02-17 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2019-03-10,距離現在已有 2247 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

edobees |

外掛標籤

import | conversion | ClassicPress | wordpress gallery | modula image gallery |

內容簡介

WPG2Mod不是一個圖片庫外掛,而只是一個轉換程式。

WPG2Mod會掃描你的WordPress博客,尋找文章和頁面內的原生WPG短碼。根據WPG的屬性(例如圖片ID),WPG2Mod會創建相應的Modula圖片庫。只需按下「導入 WPG」按鈕,就可以開始導入過程。

排除文章類型

特定的文章類型可以從掃描和轉換中排除。通常會將attachment、nav_menu_item 和 revisions排除在轉換過程之外。

識別已導入的圖片庫

由WPG2Mod導入的Modula圖片庫可以通過它們的標題輕鬆識別。它們以前綴GEN-MG-開頭,後面跟著原始WPG文章的ID。由WPG2Mod生成的Modula圖片庫(定制文章類型)的狀態為草稿。

Modula圖片庫設置

WPG2Mod使用生成的圖片庫的默認設置或名為setting-template的特定Modula圖片庫的設置。這個特定的Modula圖片庫必須由用戶在導入過程之前創建才能引用它。

支持圖庫遷移

除了Modula圖片庫,WPG2Mod還創建了一個所謂的「遷移支持文章(MSP)」,其狀態為草稿。這個文章是一個標准的WordPress文章,可以在管理文稿頁面上輕鬆找到。MSP由超鏈接構成,這些超鏈接指向所有帶有相關Modula圖片庫短碼的源文章。MSP旨在支持(手動)將WPG短碼替換為源文章內的Modula短碼。

每次執行「導入 WPG」操作時,MSP都會被重新生成。

即時轉換

一旦WPG已經被導入,WPG2Mod就可以即時將你的帖子中的WPG短碼展開為相應的Modula圖片庫。如果選擇了「即時 WP圖片庫 轉換」選項,所有WPG短碼都將被展開為Modula圖片庫。

WordPress和Modula圖片庫的共存

實際上,WPG和Modula圖片庫可以共存於同一個博客中。「即時設置」決定了默認行為。如果設置了所有WPG都會顯示為Modula圖片庫。

通過WPG2Mod引入的額外屬性可以實現更細微的調整。一個典型的WPG短碼如下:[gallery ids="109,98,99,100,101,102" link="file" columns="4"]

添加屬性mod可以控制是否顯示Modula圖片庫。值yes可以啟用圖片庫轉換,no可以禁用它。
以下示例[gallery ids="109,98,99,100,101,102" link="file" columns="4" mod="no"]禁用了此WPG的即時圖片庫轉換。

注意事項

「導入 WPG」可以使用多次,但之前生成的Modula圖片庫和「遷移支持文章」將被覆蓋。如果您想保留之前生成的和微調過的Modula圖片庫,您應該在再次運行「導入 WPG」之前將其重命名(給予它一個新的標題)。

原文外掛簡介

WPG2Mod is not an image gallery plugin – but merely a gallery converter.
WPG2Mod scans your WordPress blog looking for ‘native’ WPG shortcodes inside your posts and pages. Based on the WPG attributes (i.e. image IDs) WPG2Mod creates equivalent Modula galleries. The import process starts as soon as you press the ‘Import WPG‘ button.
Excluding Post Types
Specific post types can be excluded from scan and conversion. Usually it makes sense to exclude ‘attachment, nav_menu_item, and revisions‘ from the conversion process.
Identifying imported Galleries
Modula Galleries imported by WPG2Mod can easily be identified by their titles. They start with the prefix ‘GEN-MG-‘ followed by the post ID of the original WPG post. The status of WPG2Mod generated Modula galleries (=custom post type) is ‘draft‘.
Modula Gallery Settings
WPG2Mod either uses default settings for the generated galleries or the settings of a specific Modula gallery named ‘setting-template‘. This specific Modula gallery must have been created by the user before it can be referenced by the import process.
Supporting the Gallery Migration
In addition to Modula galleries WPG2Mod creates a so-called ‘Migration Support Post (MSP)‘ having the status ‘draft‘. This post is a standard WordPress post that can be located easily on your admin post page. The MSP consists of hyperlinks to all source posts with their associated Modula gallery shortcode. The MSP is intended to support the (manual) replacement of WPG shortcodes by Modula shortcodes inside the source post.
The MSP will be re-generated with every ‘Import WPG‘ action.
On-the-fly Conversion
As soon as the WPG have been imported WPG2Mod can expand the WPG shortcodes in your posts on-the-fly to a corresponding Modula image gallery. If the ‘On-the-fly WP Gallery Conversion‘ option has been selected all WPG shortcodes will be unfolded as Modula galleries.
Coexistence of WordPress and Modula Galleries
Actually, WPG and Modula image galleries can coexist in the same blog. The ‘On-the-Fly-Setting‘ determines the default behaviour. If set all WPG will be displayed as Modula galleries.
More fine-tuning can be achieved by an additional attribute for the WPG shortcode introduced by WPG2Mod. A typical WPG shortcode might look like this:
Adding the attribute ‘mod‘ controls if a Modula gallery should be displayed instead. The value ‘yes‘ enables gallery conversion and ‘no‘ disables it.
The following example disables on-the-fly gallery conversion for this WPG.
Caution
‘Import WPG‘ can be used several times. Previously generated Modula galleries and the ‘Migration Support Post‘ will be overwitten, though. If you want to keep a previously generated and fine-tuned Modula gallery you should rename it (give it a new title) before running ‘Import WPG‘ again.

各版本下載點

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

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


最新版本

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon