Title: OpenPublishing
Author: openpublishing
Published: <strong>2018 年 5 月 3 日</strong>
Last modified: 2020 年 5 月 29 日

---

搜尋外掛

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

![](https://ps.w.org/openpublishing/assets/icon-128x128.png?rev=1868196)

# OpenPublishing

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

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

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

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

## 外掛說明

To visualize Open Publishing data on your page please use smart substitution tags
in place you want to insert a data, like so `[large_document_view:document.123]`
or `[sidebar:newest.1:de]`

This substitution tag will be replaced by the data this plugin retrieve from OP 
server.

Smart substitution notation contain: `[ "tag_name":"object"."object_id":"language"]`

language is an optional parameter, use it to get language specific results. Possible
values: `en`, `de`, `fr`, `es`.

You can use: `document`, `bestseller`, `newest`, `most_read` objects.

Also you can access document count from brand statistics.
 To print document count
use ‘openpublishing_document_count’ option.

#### Special Features

**Openpublishing substitution**
 To make substitution work please create templates
for each tag_name you would like to use. You can do this in two different ways.

 * Using Elementor plugin:
    1. Go to Elementor [page](https://tw.wordpress.org/wp-admin/edit.php?post_type=elementor_library)
    2. Create new template, remember a template id (you can see it in the edit url)
    3. You can easily style your template by means of Elementor
 * Using WordPress posts:
    1. Go to Pages > Add New
    2. Create new post and treat it like a template, remember a template id (you can
       see it in the edit url)
    3. (Optional) you can assign special category (like op-templates) to each post 
       to distinguish between others
    4. Use special keywords in your template:`{title} {subtitle} {price} {grin_url}{
       source_url} {document_id} {cdn_host} {realm_id}`

Add newly created templates/posts on this page with corresponding ids.

### Usage:

To use substitution please insert into your page this tag with desired ‘tag_name’
and ‘object_id’ like:

    ```
    <h2>Our bestsellers:</h2>
      <div>[large_document_view:bestseller.1] [large_document_view:bestseller.2] [large_document_view:bestseller.3]</div>
    ```

This tags should be replaced right away.

**Openpublishing document count**
 There is a scheduled job which is retrieving 
the brand statistics from OP server and saves the value to Document count on a daily
basis.

### Debug:

To debug plugin work please add next code into your page after all text:

    ```
    <script type="text/javascript">
      var debug = document.getElementsByClassName("OP_debug");
      for(i=0; i<debug.length; i++) { debug[i].style.display = 'inline'; }
    </script>
    ```

This will allow you to see some more information about substitution.

## 安裝方式

 1. Install using the WordPress built-in Plugin installer, or clone repository and 
    drop the contents in the `wp-content/plugins/openpublishing` directory of your 
    WordPress installation.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to Open Publishing settings on left menu bar
 4. Proceed with further instructions: set realm id, brand name and API host.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

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

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

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

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

## 中繼資料

 *  版本 **1.6**
 *  最後更新 **6 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.3.21**
 *  語言
 * [English (US)](https://wordpress.org/plugins/openpublishing/)
 * 標籤:
 * [books](https://tw.wordpress.org/plugins/tags/books/)[ebook](https://tw.wordpress.org/plugins/tags/ebook/)
 *  [進階檢視](https://tw.wordpress.org/plugins/openpublishing/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

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

## 參與者

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

## 技術支援

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

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