Title: Front Page Custom Post Type
Author: Nick Halsey
Published: <strong>2016 年 10 月 7 日</strong>
Last modified: 2024 年 7 月 13 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/front-page-custom-post-type/assets/icon.svg?rev=1514276)

# Front Page Custom Post Type

 作者：[Nick Halsey](https://profiles.wordpress.org/celloexpressions/)

[下载](https://downloads.wordpress.org/plugin/front-page-custom-post-type.zip)

 * [详情](https://cn.wordpress.org/plugins/front-page-custom-post-type/#description)
 * [评价](https://cn.wordpress.org/plugins/front-page-custom-post-type/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/front-page-custom-post-type/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/front-page-custom-post-type/#developers)

 [支持](https://wordpress.org/support/plugin/front-page-custom-post-type/)

## 描述

If you use custom post types, you may wish to display recent posts of a custom type
in place of recent posts on your front page. A common example is showcasing your
portfolio on your front page, with posts being shown elsewhere.

With this plugin, you can select a post type other than “Posts” for the latest posts
shown on the front page.

## 屏幕截图

[⌊Front page post type option in the customizer.⌉⌊Front page post type option in
the customizer.⌉[

Front page post type option in the customizer.

## 安装

 1. Take the easy route and install through the WordPress plugin installer, or,
 2. Download the .zip file and upload the unzipped folder to the `/wp-content/plugins/`
    directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Go to the static front page section in the customizer, set the front page to show
    the latest posts, and preview the front page to show the front page post type option.

## 常见问题

### Where are the options?

Go to the static front page section in the customizer. You need to be previewing
the front page

### Theme doesn’t display correctly with custom post type

Some themes do not account for post types other than `post` in their styles. If 
switching the frot page post type changes the layout, you can try contacting the
theme author and asking them to support other post types as well, or you can restore
the indended styling with custom CSS based on the theme’s styling for `post`s.

## 评价

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

### 󠀁[Works like a charm!](https://wordpress.org/support/topic/works-like-a-charm-2120/)󠁿

 [Lucas](https://profiles.wordpress.org/luquerias/) 2022 年 10 月 31 日

The plugin does what it has to do. Do not look for the options in the admin panel
but in the customize front end options.

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

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-2179/)󠁿

 [chanelwp](https://profiles.wordpress.org/chanelwp/) 2021 年 1 月 6 日

Really easy…installed, selected the custom post type, and it works! Thank you.

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

### 󠀁[Did nothing.](https://wordpress.org/support/topic/did-nothing-15/)󠁿

 [Mav-IT Kft.](https://profiles.wordpress.org/mavit/) 2020 年 4 月 5 日 1 回复

Did nothing.

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

### 󠀁[works well](https://wordpress.org/support/topic/works-well-1800/)󠁿

 [geo2arc](https://profiles.wordpress.org/geo2arc/) 2020 年 1 月 29 日

It is simple and works well. Just go to Customizer > Front page options and select
the post type you want to appear on the front page

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

### 󠀁[Did nothing](https://wordpress.org/support/topic/did-nothing-14/)󠁿

 [ben.at](https://profiles.wordpress.org/benat/) 2019 年 4 月 12 日

No change in customizer or Wordpress read options.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/)

## 贡献者及开发者

「Front Page Custom Post Type」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Nick Halsey ](https://profiles.wordpress.org/celloexpressions/)
 *   [ annenbergdl ](https://profiles.wordpress.org/annenbergdl/)

[帮助将「Front Page Custom Post Type」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/front-page-custom-post-type)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/front-page-custom-post-type/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/front-page-custom-post-type/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/front-page-custom-post-type/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/front-page-custom-post-type/)。

## 更新日志

#### 1.0

 * First publicly available version of the plugin.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/front-page-custom-post-type/)
 * 标签
 * [custom post type](https://cn.wordpress.org/plugins/tags/custom-post-type/)[front page](https://cn.wordpress.org/plugins/tags/front-page/)
   [home](https://cn.wordpress.org/plugins/tags/home/)
 *  [高级视图](https://cn.wordpress.org/plugins/front-page-custom-post-type/advanced/)

## 评级

 3.4 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/front-page-custom-post-type/reviews/)

## 贡献者

 *   [ Nick Halsey ](https://profiles.wordpress.org/celloexpressions/)
 *   [ annenbergdl ](https://profiles.wordpress.org/annenbergdl/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/front-page-custom-post-type/)