Title: WPG2Mod
Author: edobees
Published: <strong>2019 年 2 月 18 日</strong>
Last modified: 2019 年 3 月 10 日

---

搜尋外掛

![](https://ps.w.org/wpg2mod/assets/banner-772x250.jpg?rev=2033599)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/wpg2mod/assets/icon-256x256.jpg?rev=2033599)

# WPG2Mod

 由 [edobees](https://profiles.wordpress.org/edobees/) 開發

[下載](https://downloads.wordpress.org/plugin/wpg2mod.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wpg2mod/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wpg2mod/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wpg2mod/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wpg2mod/#developers)

 [技術支援](https://wordpress.org/support/plugin/wpg2mod/)

## 外掛說明

**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](https://wordpress.org/plugins/modula-best-grid-gallery/). 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: [`gallery ids
="109,98,99,100,101,102" link="file" columns="4"`]

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 [`gallery ids="109,98,99,100,101,102" link="file" columns="
4" mod="no"`] **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._

## 螢幕擷圖

 * [[
 * WPG2Mod’s options and settings page.
 * [[
 * WPG2Mod generated Modula Galleries with ‘setting-template’.
 * [[
 * The Migration Support Post.

## 安裝方式

The WPG2Mod plugin can be installed like any other WordPress plugin. No specific
procedures apply.

After a succesful installation you should find the submenu item ‘_`WPG2Mod`_‘ inside
the ‘`Modula`‘ main menu.

If the Modula gallery plugin should not have been installed (which does not make
too much sense) the submenu item ‘_`WPG2Mod`_‘ will be located inside the ‘`Settings`‘
menu.

#### Note

_WPG2Mod has been tested with Modula Image Gallery versions 2.x._

## 常見問題集

  Why does WPG2Mod not display a gallery?

WPG2Mod is **not** an image gallery plugin but merely a tool to convert existing
WordPress image galleries into Modula galleries.
 After converting WordPress galleries
with WPG2Mod you need the free (or premium) version of Modula to display your galleries.

  Does WPG2Mod work with ClassicPress?

Yes, absolutely! WPG2Mod has been developed on [ClassicPress](https://www.classicpress.net/).

  Does WPG2Mod work with Gutenberg Gallery Blocks?

No. Please let me know, if there is an interest.

## 使用者評論

![](https://secure.gravatar.com/avatar/2d8296749588348ac00296ce0bd373094415781cecd1bbe5e81380faa08c4721?
s=60&d=retro&r=g)

### 󠀁[perfect](https://wordpress.org/support/topic/perfect-6597/)󠁿

 [Miha](https://profiles.wordpress.org/mplusb/) 2019 年 11 月 22 日

really useful

![](https://secure.gravatar.com/avatar/b48e0d876d51f14251ab3070903ddc0796c77dd4d6eb54fc126e817a171b9532?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-21432/)󠁿

 [Cristian Raiber](https://profiles.wordpress.org/cristianraiber-1/) 2019 年 4 月
4 日

Does exactly what it says it does!

![](https://secure.gravatar.com/avatar/7ebb1d084cbfcf3443cfd89e17a8bbcea3a176363478101b5e11632e4fa310b2?
s=60&d=retro&r=g)

### 󠀁[Works with ClassicPress](https://wordpress.org/support/topic/works-with-classicpress/)󠁿

 [edobees](https://profiles.wordpress.org/edobees/) 2019 年 3 月 9 日

Just to let you know. I am fully aware that being compatible with ClassicPress does
not necessarily justify a 5 star rating. 😉 Unfortunately I did not find a “neutral”
option to get rid of the bad default forum comment that might discourage users to
install WPG2Mod.

 [ 閱讀全部 3 則使用者評論 ](https://wordpress.org/support/plugin/wpg2mod/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈WPG2Mod〉的開發相關工作。

參與者

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

〈WPG2Mod〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/wpg2mod/contributors)
為這個外掛做出的貢獻。

[將〈WPG2Mod〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wpg2mod)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wpg2mod/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/wpg2mod/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wpg2mod/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wpg2mod/)。

## 變更記錄

#### 1.0.1

 * Allow editors (no more admins only) to use WPG2Mod and modify settings.
 * Introduced on-the-fly creation of Modula Galleriies from WPG shortcodes that 
   have not been imported before.

#### 1.0.0

 * Initial Release

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **7 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.1.22**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/wpg2mod/) 及 [German](https://de.wordpress.org/plugins/wpg2mod/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/wpg2mod)
 * 標籤:
 * [ClassicPress](https://tw.wordpress.org/plugins/tags/classicpress/)[conversion](https://tw.wordpress.org/plugins/tags/conversion/)
   [import](https://tw.wordpress.org/plugins/tags/import/)[wordpress gallery](https://tw.wordpress.org/plugins/tags/wordpress-gallery/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wpg2mod/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  3 個 5 星使用者評論     ](https://wordpress.org/support/plugin/wpg2mod/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/wpg2mod/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/wpg2mod/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/wpg2mod/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/wpg2mod/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wpg2mod/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wpg2mod/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wpg2mod/)