[WordPress] 外掛分享: Custom Post Template By Templatic

WordPress 外掛 Custom Post Template By Templatic 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Custom Post Template By Templatic」是 2016-06-01 上架。
  • 目前有 800 個安裝啟用數。
  • 上一次更新是 2018-10-27,距離現在已有 2381 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

rbhavesh |

外掛標籤

templatic | single posts | post type templates | single post templates |

內容簡介

此外掛「Templatic單一模板」(Templatic Single Template)讓您的佈景主題能夠像加入「頁面模板」一樣,加入「文章模板」,這可讓您根據每個文章自由選擇要使用哪個模板(透過簡單的下拉式選單)。 安裝並啟用此外掛後,您只需要在您佈景主題的資料夾中建立一個或多個「文章模板」,在建立或編輯文章時選擇所需的文章模板。 如果沒有選取任何文章模板,將使用預設的模板。 如需更多資訊,請參閱 Templatic 的「Custom Post Template by Templatic」。此外掛的作用與 Templatic 專業網站相同,它提供獨特的首頁、部落格、俱樂部、各種產品圖庫以及特定產品的獨特銷售頁面。 Templatic 透過 WordPress 標準的 homepage.php、自訂頁面模板和帶有一些自訂和動態程式碼的檔案,包括存取資料庫的自訂欄位、自訂五星評分等等,來實現此功能。 想要有獨特的銷售頁面設計嗎?「Custom Post Template」將是您的救星。 Templatic 創建了一個叫作「產品」的自訂分類法,在 blog 文章和頁面的分離之上,透過此法,讓全部產品作為 WordPress 標準文章新增,並保持在分離的部分,藉此讓管理更簡單有序。「Custom Post Template」即是此外掛,它讓您能夠為自訂文章類型建立「單一文章模板」,並分配給分類中的任何文章。 您可以像 Templatic 一樣使用此外掛,並擁有不同的銷售頁面模板。 想要使用此外掛的話,只需從上方連結下載並安裝,之後建立一些文章模板即可使用它。 若要建立文章模板,請複製您的預設「單一文章模板」或建立新的模板檔案,並在檔案的最上方插入該程式碼。

原文外掛簡介

The Templatic Single Template plugin provides the ability for your theme to include ” Post Templates ” in much the same way you add ” Page Templates “, this will allow you to choose (via a simple dropdown) which post template you want to use, on a per-post basis.
All you need to do after installing and activating the plugin is to create one or more ” Post Templates ” in your theme’s folder, when creating or editing a post, choose the post template that you would like to use. If no post template is selected, the default template will be used. See the Custom Post Template by Templatic for further Information.
Ever since our site launch, templatic website has always been built on top of WordPress. The site has a unique homepage, blog, club page, different kind of product galleries, and best of all, unique sales pages for different kind of products. Our site has hundreds of blog posts, product sales pages with custom fields, custom pages, specially designed product archives and many other custom built functionality.
So how do we do it on a standard WordPress install? Custom Post Template is the answer.
For the unique homepage, club page, themes, and plugin gallery and other pages, we used WordPress standard homepage.php and custom page templates, archive PHP files with some custom and dynamic code built in. No problems there. It required some clever coding but overall, it is achievable.
But how do we manage custom sales pages for all the products?
With having 80+ themes, 40+ plugins and many of them requiring unique sales page design, it becomes a challenge even to manage things in the wp-admin.
The standard way to have a unique page design is to use a page template. But we can not have standard WordPress pages like about page and hundreds of pages for a product, all mixed up. It becomes messy and chaotic to organise things.
To organise things, we built the custom taxonomy for products.
In order to keep our blog posts and pages separate, we created a new taxonomy called Product. This helps us add all the products as a standard WordPress post and keeps it in a separate section. Chaos organised.
How do we show unique sales page templates for different products then?
If you look around, you will notice different sales page for different products. For example, sales pages for our directory theme, e-commerce theme, a portfolio theme, free WordPress theme, a plugin and other sales pages are designed and structured differently.
So how did we do this? Well, we created a custom plugin for this. A plugin that lets us create a custom post template for custom post type (or call it single post template for taxonomy) and assign it to any post in that particular taxonomy. Cool ha?
Now you can have it too. Free Custom Post Template WordPress plugin is released.
How to use this plugin?

Download this Free Custom Post Template WordPress Plugin from above link.
Connect to your WordPress dashboard (wp-admin) and navigate to Plugins >> Add New Plugin >> Upload Plugin >> Now upload the downloaded (Templatic-SingleTemplate.zip) file >> Click on Install Now.
Once you install this plugin successfully, click on Activate Plugin .
After activating the plugin you will need to create some Post Templates to use. In order to create a Post Template, either duplicate your default single post template, or create a new template file. Insert this code at the very top of the file.

Add the code as mentioned above at the top of a new file.
Now when you visit any post in your wp-admin area, you should be able to see a small post template box in the sidebar will let you select WordPress article template.
In the drop down, the template you just added will be available. Simply select it.
Now your post will show this new template instead of the regular WordPress post design.
Also, works with WooCommerce
Yes, if you are using WooCommerce to sell products and want to design a special product page for a specific product, its possible. This plugin will work with WooCommerce as well.
You can do wonders with it.
This is a simple plugin but the possibility is endless. If you combine custom fields with the template, you can do wonders with it. Any kind of design for any of your posts in your site is possible.
So, go give it a try and let us know how you like it.

各版本下載點

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

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


最新版本

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon