Title: JAMStackPress
Author: jamstackpress
Published: <strong>2021 年 4 月 28 日</strong>
Last modified: 2022 年 7 月 26 日

---

搜尋外掛

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

![](https://ps.w.org/jamstackpress/assets/icon.svg?rev=2523479)

# JAMStackPress

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

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

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

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

## 外掛說明

JAMStackPress – Power-up you WordPress backend

This plugin extends the WP-JSON API by adding a new useful set of fields to the 
WP-JSON API response, this new set of fields will make your front-end development
easier. JAMStackPress also applies some optional filters
 to the content in order
to make it front-end ready (no need to make replacements or ad image width and height
attrs at front-end level). Finally we also adds to more endpoints to the WP-JSON
API (contact form and sitemap) very useful! We think about the possible scenarios
of development for your static website, so in other words, we’ll try to make your
life easier, so that you only think about developing your decoupled front-end.

### Extra fields (jamstackpress object)

We include some extra fields that can be activated in the plugins administration
page, that will make your front-end development easier:

 * Human readable date field (uses the locale defined in your WordPress panel):
   `"
   readable_date": "March 26, 2018"`
 * Post’s full slug and front-end link respecting your WordPress permalinks selection:
   `"
   routes": { "slug": "/category/post-title/", "front_link": "https://frontenddomain.
   com/category/post-title/" }
 * Featured image URLs one for every size:
 * `"featured_image": {
    "thumbnail": "http://example.com/wp-content/uploads/2022/
   07/thumbnail-150x150.jpg", "medium": "http://example.com/wp-content/uploads/2022/
   07/medium-300x200.jpg", "medium_large": "http://example.com/wp-content/uploads/
   2022/07/medium-large-768x512.jpg" "large": "http://example.com/wp-content/uploads/
   2022/07/large-1024x683.jpg" }
 * SEO tags Title and Description – Compatible With Yoast and RankMath plugins:
   `"
   seo": { "title": "Post Title", "description": "Post SEO description" }

### Extra endpoints

JAMStackPress includes 2 optional endpoints, always with the porpoise in mind of
making your front end development tasks much more easier

**/jamstackpress/v1/contact**
 This endpoint acts as a contact form back-end resource.
Will save a jp_contact custom post and send an email on every success submission.

How to use it:

 1. Enable the custom **contact form endpoint** in the options panel.
 2. Fill and save the rest of the options related to the contact endpoint: **Contact
    email**, **Contact Fail Message**, **Contact Success Message** and **reCaptcha 
    Secret Key** (google reCaptcha V3).
 3. Send a request to the custom contact form endpoint, here is an example of a call
    to the contact form endpoint using js fetch()
 4. `fetch('https://example.com/wp-json/jamstackpress/v1/contact?',{
     method: 'POST',
    headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, 
    body: JSON.stringify({ name: 'Name', email: 'example@example.com', subject: 'Contact
    Subject', message: 'Body of the contact form message', recaptach_token: 'xxxxxxxxxxx'})})

**/jamstackpress/v1/sitemap**
 This endpoint will return a full list of posts and
categories slugs, here is a sample of returned list: `["/sapiente/eveniet-velit-
et-aut-est-et-inventore/","/sapiente/aliquid-aut-ut-eius-excepturi-magni/","/nulla-
molestias/eius-ratione-mollitia-aliquam/","/uncategorized/aut-qui-repudiandae-nihil-
iste/","/uncategorized/test/","/aliquam/","/ipsa-ratione/","/nulla-molestias/","/
perferendis-modi/","/sapiente/","/uncategorized/","/unde-temporibus/","/ut-quo/"]`

### Content filters & Deploy tools

**Content filters**
 – Replace your WordPress base URL with the front-end URL defined
in the plugin settings. – Add image width and height attributes to every image placed
at the content. – Add _blank target to every external link at the content.

**Deploy tools**
 – Trigger front-end build: You can specify a build webhook url
for triggering a deployment in your front-end site, directly from your WordPress
back-end. This is specially useful to keep your front-end site always updated with
the latest content, without having to manually trigger a deploy.

## 螢幕擷圖

 * [[
 * Options panel.

## 使用者評論

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

### 󠀁[Any sample](https://wordpress.org/support/topic/any-sample/)󠁿

 [pressport](https://profiles.wordpress.org/pressport/) 2023 年 2 月 7 日

Thank you! Interesting. But are there any examples of real Wordpress + ReactJS sites
that would work on independent hosting?

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

### 󠀁[Useful plugin to JAMstack + WordPress](https://wordpress.org/support/topic/useful-plugin-to-jamstack-wordpress/)󠁿

 [briandellawere](https://profiles.wordpress.org/briandellawere/) 2022 年 8 月 5
日

Great and much needed plugin, that makes front end development much easier if you
use Wordpress as your data back-end… Thanks!

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

## 參與者及開發者

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

參與者

 *   [ jamstackpress ](https://profiles.wordpress.org/jamstackpress/)
 *   [ santiagocajal ](https://profiles.wordpress.org/santiagocajal/)
 *   [ guilledutra ](https://profiles.wordpress.org/guilledutra/)

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

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

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

## 變更記錄

#### 0.1.3

 * Fix plugin version
 * Update changelog order

#### 0.1.2

 * Fix internal GitHub deployment

#### 0.1.1

 * Fix dependencies missing

#### 0.1.0

 * Major changes (see readme)
 * The plugin now extends the WP-JSON API

#### 0.0.5

 * Fix version number

#### 0.0.4

 * Fix endpoint response not being formatted correctly.

#### 0.0.3

 * Fix previous release version issues.
 * Update screenshots and url placeholders.

#### 0.0.2

 * Add plugin assets dir.

#### 0.0.1

 * First version.

## 中繼資料

 *  版本 **0.1.3**
 *  最後更新 **4 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.7.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.0.12**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/jamstackpress/)
 * 標籤:
 * [headless](https://tw.wordpress.org/plugins/tags/headless/)[jamstack](https://tw.wordpress.org/plugins/tags/jamstack/)
   [pwa](https://tw.wordpress.org/plugins/tags/pwa/)[spa](https://tw.wordpress.org/plugins/tags/spa/)
   [static](https://tw.wordpress.org/plugins/tags/static/)
 *  [進階檢視](https://tw.wordpress.org/plugins/jamstackpress/advanced/)

## 評分

 5 星，滿分為 5 星

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

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

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

## 參與者

 *   [ jamstackpress ](https://profiles.wordpress.org/jamstackpress/)
 *   [ santiagocajal ](https://profiles.wordpress.org/santiagocajal/)
 *   [ guilledutra ](https://profiles.wordpress.org/guilledutra/)

## 技術支援

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

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