Title: Custom Front Page
Author: Micah Wood
Published: <strong>2012 年 10 月 5 日</strong>
Last modified: 2020 年 12 月 13 日

---

搜索插件

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

![](https://ps.w.org/mpress-custom-front-page/assets/icon-256x256.png?rev=2286619)

# Custom Front Page

 作者：[Micah Wood](https://profiles.wordpress.org/wpscholar/)

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

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

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

## 描述

The **Custom Front Page** plugin allows to you set any post or page, including custom
post types, as the homepage.

#### Why?

Let’s say you have created a ‘landing page’ post type. This post type provides you
with all the input fields and default
 design needed to make awesome landing pages
easy. These landing pages are so awesome, in fact, that you decide to use one as
your homepage. But wait, WordPress won’t let you do that… until now! Just install“
Custom Front Page” and you can select any page, post or custom post type to be the
homepage on your site.

#### How?

Using this plugin is simple:

 1. Install the plugin
 2. Activate the plugin
 3. Go to ‘Reading’ under ‘Settings’ in the WordPress admin menu and select the desired
    front page.
 4. Save your changes

#### Features

 * Works with custom post types
 * No settings page, just adds additional post types to the front page dropdown
 * Clean, well written code that won’t bog down your site

## 安装

#### Prerequisites

If you don’t meet the below requirements, I highly recommend you upgrade your WordPress
install or move to a web host
 that supports a more recent version of PHP.

 * Requires WordPress version 3.0 or greater
 * Requires PHP version 5 or greater ( PHP version 5.2.4 is required to run WordPress
   version 3.2 )

#### The Easy Way

 1. In your WordPress admin, go to ‘Plugins’ and then click on ‘Add New’.
 2. In the search box, type in ‘Custom Front Page’ and hit enter. This plugin should
    be the first and likely the only result.
 3. Click on the ‘Install’ link.
 4. Once installed, click the ‘Activate this plugin’ link.

#### The Hard Way

 1. Download the .zip file containing the plugin.
 2. Upload the file into your `/wp-content/plugins/` directory and unzip
 3. Find the plugin in the WordPress admin on the ‘Plugins’ page and click ‘Activate’

#### Usage Instructions

Once the plugin is installed and activated, go to ‘Settings’ -> ‘Reading’ in the
WordPress admin. You will notice that the ‘Front page’ dropdown now allows you to
select from any post type. Choose what you want your front page to be and click ‘
Save Changes’. Viola! You now have a new front page!

## 评价

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

### 󠀁[Works as described!](https://wordpress.org/support/topic/works-as-described-306/)󠁿

 [Jeff-Design-Dev](https://profiles.wordpress.org/jeff-design-dev/) 2021 年 11 月
9 日

I needed to make a blog post my home page and voila! Quick and easy.

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

### 󠀁[Amazing Plugin](https://wordpress.org/support/topic/amazing-plugin-1602/)󠁿

 [skylinks](https://profiles.wordpress.org/skylinks/) 2020 年 9 月 5 日

Amazing plugin & Super fast support 10/10

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

### 󠀁[It just works](https://wordpress.org/support/topic/it-just-works-610/)󠁿

 [fastbook](https://profiles.wordpress.org/fastbook/) 2020 年 7 月 3 日

Well ..what can i say.. It works fine..!! Many thanks to the plugin Author

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

### 󠀁[ABSOLUTELY AMAZING !](https://wordpress.org/support/topic/absolutely-amazing-76/)󠁿

 [paulgyver](https://profiles.wordpress.org/paulgyver/) 2020 年 4 月 27 日 1 回复

The perfect plugin to add custom posts as homepage ! I've search a long time for
a solution (custom code or plugin) and this plugin is absolutely amazing and work
perfectly ! Thanks a lot for this perfect job ! Every developer/designer should 
need it in their toolbox 😀

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

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

 [komilin](https://profiles.wordpress.org/komilin/) 2018 年 9 月 3 日 1 回复

Works with Kalium Theme

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

### 󠀁[Doesn’t seem to work](https://wordpress.org/support/topic/doesnt-seem-to-work-76/)󠁿

 [franfaulkner](https://profiles.wordpress.org/franfaulkner/) 2017 年 4 月 27 日
1 回复

I've followed all the instructions, but there are no options offered in customise
for post types on the front page.

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

## 贡献者及开发者

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

贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

「Custom Front Page」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/mpress-custom-front-page/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1.2

 * Minor updates to improve code.

#### 1.1

 * Updated dropdown in customizer to support all registered post types (thanks https://
   github.com/WebDevLan4You).
 * Tested in WordPress version 4.6.1

#### 1.0

 * Tested in WordPress version 4.5.2

#### 0.2

 * Reformatted code
 * Added PHP docBlock for class and methods.
 * Updated tested WordPress version to 3.6.1

#### 0.1

 * Initial commit

## 额外信息

 *  版本 **1.1.2**
 *  最后更新：**6 年前**
 *  活跃安装数量 **900+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **5.6.22**
 *  PHP 版本 ** 5.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/mpress-custom-front-page/) 和 [Swedish](https://sv.wordpress.org/plugins/mpress-custom-front-page/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/mpress-custom-front-page)
 * 标签
 * [custom post type](https://cn.wordpress.org/plugins/tags/custom-post-type/)[front page](https://cn.wordpress.org/plugins/tags/front-page/)
   [homepage](https://cn.wordpress.org/plugins/tags/homepage/)
 *  [高级视图](https://cn.wordpress.org/plugins/mpress-custom-front-page/advanced/)

## 评级

 4.4 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/mpress-custom-front-page/reviews/#new-post)

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

## 贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/wpscholar/15)