內容簡介
使用這款外掛,您可以創建一個指向 post-new.php(創建新頁面的地方)的連結,其中包括新頁面的所需 parent_id。這使您可以在網站前端創建類似「在此部分添加新頁面」或「創建新子頁面」的鏈接。這在開發自定義主題時非常有用,可以為具有編輯權限的用戶在網站前端添加有用的後端鏈接。如果要使用 WordPress 作為 CMS,您確實希望讓用戶避免使用笨重的頁面管理界面......
功能
這應該成為 WordPress 的一個功能
我無法相信這不是內建的 WordPress 功能
這必須依靠 JavaScript,因為沒有合適的鉤子可以以其他方式實現它
我有提到這應該被內建在 WordPress 中嗎?
反饋
我想製作一些函數,實際上輸出這些鏈接,但由於我們正在談論開發自定義主題,所以您可能會硬代碼編輯。
如果您有任何疑問,可以訪問我的網站(http://theoephraim.com)
授權
版權所有(C)2010年Theo Ephraim
您可以在自由軟件基金會的GNU通用公共許可證條款下使用、重新分發和/或修改此程序。
本程序作為免費軟件發布,沒有任何保證。
外掛標籤
開發者團隊
原文外掛簡介
With this plugin you can create a link to post-new.php (the place to create a new page) that includes the desired parent_id of the new page. This allows you to create links in the front end of the website like “Add a new page to this section” or “Create a new sub-page”. This is extremely useful when developing custom themes to add useful backend links on the front end of the site for users who have editing access. For using wordpress as a CMS, you really want to let the user avoid going through the clunky manage pages interface…
Features
This should be a feature of wordpress
I can’t believe this isn’t built into wordpress
This has to rely on javascript because there’s no suitable hook to do it another way
Did I mention this should be built into wordpress?
Feedback
Doubt you’ll have any, but if you do, you can go to my website (http://theoephraim.com)
I was thinking about making some functions to actually spit out the links, but since were talking about developing custom themes, you may as well just hardcode it.
License
Copyright (C) 2010 by Theo Ephraim
You may use, redistribute and/or modify this programm under the terms of the GNU General Public License by the Free Software Foundation.
The programm is distributed as free software without any warranty.
