[WordPress] 外掛分享: Gravity Forms + Custom Post Types

首頁外掛目錄 › Gravity Forms + Custom Post Types
WordPress 外掛 Gravity Forms + Custom Post Types 的封面圖片
10,000+
安裝啟用
★★★★
4.4/5 分(46 則評價)
25 天前
最後更新
問題解決
WordPress 3.0.1+ v3.1.30 上架:2011-02-20

內容簡介

此外掛可將 Gravity Forms 生成的文章對應至自訂文章類型和/或自訂分類,無需任何程式設計。
介紹

此外掛為 Gravity Forms 的附加元件,您可以造訪 GravityWiz.com 以獲得更多免費的 Gravity Forms 資源。如果您正在尋找最完整的 Gravity Forms 外掛集合,請參考 Gravity Perks。

描述

Gravity Forms 可以讓您使用特殊的文章欄位從表單提交建立文章。預設情況下,提交的表單會建立為 WordPress 標準文章。此外掛則允許您更改所生成的文章的文章類型,而不需要任何程式設計!此外掛還提供將所生成的文章分配至自訂分類的功能。

需要更新文章嗎?透過這篇文章 「如何使用 Gravity Forms 更新文章」 進行學習。

功能

將文章對應至自訂文章類型
將文章對應至自訂分類(透過下拉式、多選、單選或多選框欄位)
將文章對應至多個分類
支援階層式分類的視覺化階層(僅適用於下拉式欄位)
使用文章填入下拉式欄位
為生成的文章分配父文章(僅適用於下拉式欄位)
支援在單行文字欄位下使用分類(輸入方法:逗號分隔的列表,例如:term a、term b、term c)
增強的顯示單行文字欄位 UI 支援(請參閱截圖)

如何將表單對應至自訂文章類型

新增文章標題欄位至您的表單,並點擊它以開啟欄位設定。
在「說明」欄位設定下方,您會找到「文章類型」設定。
從下拉式選單中選擇所需的文章類型 (預設為「Posts」)。

如何將欄位與自訂分類連結

新增欄位到您要將自訂分類連結的位置。目前支援下拉式、多選、單選和多選框欄位。
透過點擊欄位開啟欄位設定,然後點擊「進階」標籤。
勾選「以分類填充」核取方塊。
從下拉式選單中選擇所需的分類。

如何透過單行文字欄位將已儲存的文章連結至分類

單行文字欄位是讓使用者選擇現有的分類名稱或新增分類的好方法。

在您的表單中新增單行文字欄位。
透過點擊欄位開啟欄位設定,然後點擊「進階」標籤。
勾選「儲存至分類」核取方塊。
從下拉式選單中選擇所需的分類。
(選擇性) 勾選「啟用增強式 UI」核取方塊,以啟用極棒的標籤輸入式 UI(請參閱截圖)。

注意:如果使用者輸入現有的分類名稱,生成的文章將會被分配至這些分類。如果使用者輸入不存在的分類,這些分類會被新增至所選的分類,並且生成的文章也會被分配至這些分類。

如何透過下拉式欄位設定父文章

當使用文章填入下拉式欄位時,您可能希望將所選的文章設定為生成文章的父文章。

在您的表單中新增一個下拉式欄位。
點擊欄位以開啟欄位設定,然後點擊「進階」標籤。
勾選「保存父文章」的核取方塊。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.1.30) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Gravity Forms + Custom Post Types」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Map your Gravity-Forms-generated posts to a custom post type and/or custom taxonomies. = Introduction = This plugin is an add-on for Gravity Forms. Make sure you visit GravityWiz.com for more free Gravity Forms resources. And if you’re looking to the largest collection of Gravity Forms plugins, check out Gravity Perks. = Description = Gravity Forms allows you to create posts from a form submission using special Post Fields. By default, the submitted form will be created as a standard WordPress post. This plugin allows you to change the post type of the generated post. No code required! This plugin also provides the ability to assign the generated post to a custom taxonomy. Need to update posts? Learn how to update posts with Gravity Forms. = Features = – Map posts to a custom post type – Map posts to a custom taxonomy (via Drop Down, Multi-select, Radio Button or Checkbox field) – Map posts to multiple taxonomies – Visual hierarchy support for hierarchical taxonomies (Drop Down field only) – Populate a Drop Down with posts – Assign parent post for generated post (Drop Down field only) – Single Line Text field support for taxonomies (enter as a comma-delimited list: term a, term b, term c) – Enhanced UI support for Single Line Text fields (see screenshots) = How to map a form to a custom post type = 1. Add a Post Title field to your form and click on it to open the field settings. 2. Below the “Description” field setting, you will find the “Post Type” setting. 3. Select the desired post type from the drop down (default is “Posts”). = How to link a field to a custom taxonomy = 1. Add the desired field to which the custom taxonomy should be mapped. Drop Down, Multi Select, Radio Buttons and Checkboxes fields are current supported. 2. Open the field settings by clicking on the field and click on the “Advanced” tab. 3. Check the “Populate with a Taxonomy” checkbox. 4. Select the desired taxonomy from the drop down that appears. = How to link the saved post to taxonomies using a single line text field = Single Line Text fields are a great way to allow users to select existing taxonomy terms and to also add new terms. 1. Add a Single Line Text field to your form. 2. Open the field settings by clicking on the field and click on the “Advanced” tab. 3. Check the “Save to Taxonomy” checkbox. 4. Select the desired taxonomy from the drop down that appears. 5. (optional) Check the “Enable Enhanced UI” checkbox to enable an awesome tag-input style UI (see screenshots). Note: If the user inputs exising term names, the generated post will be assigned these terms. If the user inputs term names that do not exist, these terms will be added to the selected taxonomy and the generated post will also be assigned these terms. = How to set a parent post with the drop down field = When populating a Drop Down field with a post type, you may wish to set the selected post as the parent post for the generated post. 1. Add A Drop Down field to your form. 2. Click on the field to open the field settings. Then click on the “Advanced” tab. 3. Check the “Populate with Post Type” checkbox. 4. Select the desired post type from the drop down that appears. Be sure to select the same post type for which the post is being generated.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon