[WordPress] 外掛分享: Page In Page

前言介紹

  • 這款 WordPress 外掛「Page In Page」是 2013-11-10 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2014-02-24,距離現在已有 4092 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tcyr |

外掛標籤

page | post | widget | shortcode | insert post in page |

內容簡介

Page-in-page外掛程式的使命非常簡單:

無壓力地在頁面或文章中巢狀插入其他文章或頁面。

將 Facebook 專頁的文章帶到你的 WordPress 頁面。

在 WordPress博客中顯示你的推文。

它提供使用小工具和簡代碼的選項。如果使用小工具,你只能在頁面中包含頁面,但如果使用簡代碼,你可以在文章/頁面中巢狀插入其他文章/頁面。

對於 Facebook 專頁的文章,僅返回最近的前25篇文章,而對於推文,僅返回最近的前20條推文。在未來的版本中,我們可能會包括社群動態的分頁。

使用方法
使用小工具

小工具中的設置包括:

標題: Widget標題。如果未選擇“顯示頁面標題”選項,此標題將顯示為頁面的標題。

頁面: 選擇在調用小工具時將包含的頁面。

顯示頁面標題: 如果選中,則會顯示頁面標題並忽略“標題”。

將標題顯示為鏈接: 如果選中,標題將顯示為頁面的鏈接。

顯示頁面內容: 如果選中,則頁面內容將包含在輸出中。

顯示特色圖像: 如果選中,則將包含精選圖像在輸出中。

將特色圖像顯示為鏈接: 如果選中,精選圖像將包含在並鏈接至頁面中的輸出。

輸出模板: 插入用於顯示小工具內容的HTML模板。如果沒有提供,則將使用默認模板。

在您的模板中可以使用的slug(縮略字)為${page_title},${page_content},${page_link},${page_image},其中每個slug都是自我解釋的。

默認的輸出模板為:

${page_title}

${page_content}

使用簡代碼

藉由簡代碼,你可以在文章/頁面中巢狀插入其他文章/頁面,或在頁面/文章中插入文章。

可以在簡代碼中使用的設定有:

id:您要插入的頁面/文章的 ID
show_page_title:是否顯示頁面標題?(可以是1或0。預設為1)
show_page_content:是否顯示頁面內容?(可以是1或0。預設為1)
show_title_as_link:是否顯示標題作為鏈結?(可以是1或0。預設為0。如果設為1,頁面/文章的標題將顯示為指向頁面的鏈結)
show_featured_image:是否包括頁面/文章的特色圖像?(可以是1或0。預設為0)
show_featured_image_as_ink:是否包括頁面/文章的特色圖像並作為連結呈現?(可以是1或0。預設為0)

請注意,如果您在簡代碼中指定模板,則上述設置將被忽略,而您在模板中插入的slug將被替換為適當的內容。

原文外掛簡介

The page-in-page plugin has a very simple mission:

Insert posts and pages within each other with no stress.

Bring your Facebook Page posts to your WP pages.

Show your Tweets in your WP blog.

It provides possibilities to use both widgets and shortcodes. If using a widget you are only able to include pages within pages but if using the shortcode, you are able to able to insert posts/pages
within other posts/pages.
For Facebook Page posts, only the first 25 most recent posts are returned and for Tweets, only the first 20 most recent tweets are returned. In future releases maybe we will include pagination for social feeds.
Usage
Using the widget
The settings in the widget include:

Title: Widget Title. This title will be shown as the page’s title if ‘Show page title’ option is not selected.

Page: Select the page that will be included when widget is called.

Show page title: If checked (selected) then the page title will be shown and the ‘Widget Title’ ignored.

Show title as link: If checked (selected) the title will be displayed as a link to the page.

Show page content: If checked (selected) then the page content will be included in the output.

Show featured image: If checked (selected) then the featured image will be included in the output.

Show featured image as link : If checked (selected) then the featured image will be included and linked to page in the output.

Output Template: Insert an HTML template that will be used to display content of the widget. If not provided the default template will be used
Slugs that can be used in your template are ${page_title}, ${page_content}, ${page_link}, ${page_image} . Each are self explanatory of what they will be replaced with.
The default output template is

${page_title}
${page_content}

Using shortcode
With shortcodes, you can insert posts in posts, pages in pages, posts in pages and vice versa.
Settings that can be used in a shortcode are:

id : The ID of the page/post you want to insert
show_page_title: should the page title be displayed? (Can be 1 for true or 0 for false. Defaults to 1)
show_page_content: should the page title be displayed? (Can be 1 for true or 0 for false. Defaults to 1)
show_title_as_link: Can be 1 for true or 0 for false. Defaults to 0. If set to 1, the page title will be displayed as a link to the page/post
show_featured_image: Can be 1 for true or 0 for false. Defaults to 0. If set to 1, the page’s featured image will be included
show_featured_image_as_ink: Can be 1 for true or 0 for false. Defaults to 0. If set to 1, the page’s featured image will be included as a link

Note that if you are specifying a template in the shortcode, then the above settings will be ignored and the slugs you insert in your template will be replaced with appropriate content.
See a template example and allowed slugs above.
To insert a shortcode you can do one of the following:

To insert without specifying a template you can simply use
[twl_page_in id=123] OR [twl_page_in id=123 show_page_title=1].

To insert your shortcode specifying a template for page/post’s title and content use the following. You can include other supported slugs mentioned above
[twl_page_in id=123 show_page_title=1]

${page_title}

${page_content}

[/twl_page_in]
The template specified in the [twl_page_in] tag will be used to display the page/post with the specified id when inserting it. The template is optional and if not specified then the default template will be used.
IMPORTANT!!! If you specify a template, you MUST have the slugs you want to be shown else you might get unexpected results
IMPORTANT!!! This template has to be defined when Editor is in ‘Visual’ mode and NOT in ‘Text’ mode (see screen shot). If you do not respect this you might have unexpected results because HTML tags might not be parsed properly.
However if you have escaping with magic quotes off on your server then template should be defined when editor is in ‘Text’ mode.

To insert posts from your Facebook page, Go to Admin > Settings > Page In Page Plugin and insert your facebook application credentials.
Next edit the page where you want the posts to appear and insert the short code [twl_page_in_fb]. See screenshot 3 for output.

To insert tweets from your twitter account, Go to Admin > Settings > Page In Page Plugin and insert your twitter application credentials.
Next edit the page where you want the posts to appear and insert the short code [twl_page_in_tw]. See screenshot 4 for output.

What Next?
Find a bug or got any worries? well never mind just send an email to [email protected].
Future releases: Integrate same functionality across multi sites and pagination for social page feeds.
2.0.3

Remove non-GPL compatible jquery isotope library

2.0.2

Important In the widget, the “title template” and “content template” fields have been unified to “output template”. Template specification in editor remains unchanged but more slugs added.
More settings added

show page title (shortcode parameter: show_page_title. Can be 1 or 0)
show page title as link (shortcode parameter: show_title_as_link. Can be 1 or 0)
show page content (shortcode parameter: show_page_content. Can be 1 or 0)
show featured image (shortcode parameter: show_featured_image. Can be 1 or 0)
show featured image as link (shortcode parameter: show_featured_image_as_link. Can be 1 or 0)

If an output template is specified, then the settings above are ignored so all necessary slugs should be specified in output template.
Slugs to be used in templates: ${page_title}, ${page_content}, ${page_link}, ${page_image} .
Usage of namespace for twitter SDK removed due to complaints for PHP

各版本下載點

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

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


1.0 | 2.0 | 1.0.1 | 1.0.2 | 2.0.1 | 2.0.2 | 2.0.3 | trunk |

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

  • Widgets for Google Reviews 》onal version of our review software, you can:, , , Display unlimited Google Reviews, Customize widget design and behavior, Respond to reviews direc...。
  • Blocksy Companion 》Blocksy Companion 是一個外掛,將 Blocksy 主題轉化為強大的瑞士軍刀工具。, 只有在安裝並啟用 Blocksy 主題時,它才會運行並添加增強功能。, 最小需求, , W...。
  • Black Studio TinyMCE Widget 》此外掛添加了一個新的 Visual Editor 小工具類型,讓您能夠在側邊欄中輕鬆地插入豐富的文字和媒體對象。使用 Black Studio TinyMCE Widget 時,您將能夠使用W...。
  • Widget Importer & Exporter 》Widget Importer & Exporter 是一個有用的外掛,可將小工具從一個WordPress站點移動到另一個站點,備份小工具,並供主題開發人員為用戶提供範例小工具。...。
  • Orbit Fox by ThemeIsle 》透過Orbit Fox,您可以使用各種模組擴充您的主題功能,例如社交媒體分享按鈕和圖示、自訂選單圖示、頁首和頁尾腳本、一鍵導入頁面模板、頁面建構器附加元件和...。
  • Recent Posts Widget With Thumbnails 》列出最新的文章標題、縮略圖、摘要、作者、類別、日期等等!, 雖然此外掛僅建立在小工具區域,但使用者報告說它在 Elementor 和 Oxygen 上運作順暢。但它是否...。
  • WordPress Popular Posts 》WordPress Popular Posts 是一個高度可定製的小工具,可以顯示您最受歡迎的文章。, 主要特點, , 多小工具功能 – 您可以在您的博客上擁有多個 WordPress...。
  • Widget Logic 》此外掛可在每個小工具中新增一個名為 "Widget logic" 的額外控制欄,讓您控制這個小工具會出現在哪些頁面上。文字欄位允許您使用 WP 的Conditional Tags或任...。
  • Social Media Share Buttons & Social Sharing Icons 》在你的免費測試網站上試試看:點擊此處 => https://tastewp.com/plugins/ultimate-social-media-icons, (這個技巧適用於所有外掛 – 只需在外掛的 WP 存儲庫 ...。
  • Fixed Widget and Sticky Elements for WordPress 》使用 Fixed Widget 外掛可以創建黏貼式的小部件、區塊和其他元素,當用戶向上或向下滾動頁面時,它們會保持在可見的屏幕區域內。, 相較於非固定小工具,黏貼...。
  • PHP Code Widget 》普通的文字小工具允許您插入任意文字和/或 HTML 代碼。這個外掛程式也允許這樣做,但還會解析文本小工具中的任何 PHP 代碼並執行它。, 這可以讓您更輕鬆地遷...。
  • Image Widget 》Image Widget 是一個簡單的外掛程式,利用 WordPress 原生媒體管理員,為您的網站新增圖片小工具。, 需要新增幻燈片、燈箱或隨機圖像嗎?, 請查看 Image Widg...。
  • Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager 》使用 Custom Sidebars,一個靈活的小工具管理器,在您的網站上管理和替換側邊欄和其他小工具區。, 製作自訂側邊欄配置,能夠選擇在您網站的每個頁面或文章上...。
  • Recent Posts Widget Extended 》外掛描述, 此外掛可以啟用自定義、靈活且進階的最新文章功能,您可以透過簡碼或小工具來顯示它。您可以顯示具有縮略圖、摘要和發佈日期的最新文章清單,並且...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。

文章
Filter
Apply Filters
Mastodon