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

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!

使用者評論

2020 年 7 月 3 日
Well ..what can i say.. It works fine..!! Many thanks to the plugin Author
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 😀
2018 年 9 月 3 日 1 則留言
Works with Kalium Theme
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 則使用者評論

參與者及開發者

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

參與者

〈Custom Front Page〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Custom Front Page〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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