檢視 Wordpress/頁 的原始碼
←
Wordpress/頁
跳至導覽
跳至搜尋
由於以下原因,您無權編輯此頁面:
您請求的操作只有這個群組的使用者能使用:
使用者
您可以檢視並複製此頁面的原始碼。
[[分類:應用軟體]] ===頁=== 是 wp_posts 中的一筆資料,其 comment_status 欄為 closed #頁抬頭在 post_title 欄,會秀在整頁的最上方。本欄同時是串接新舊版本的 key #內容在 post_content 欄 #到達方法: #*依 guid 欄,最終版本如 http://urclass.net/wordpress/?page_id=2417 #*依 guid 欄,舊版本如 http://urclass.net/wordpress/2417-revision-v1/ #*依 post_name 欄值,如 http://urclass.net/wordpress/tests/ 或 http://urclass.net/wordpress/2417-revision-v1 #最新版本其 post_type 為 page ,post_status 為 publish #舊版其 post_type 為 revision(調整),post_status 為 inherit(繼承) #最後更新版本的 id 始終不變,產生新的 id 去永舊版。 #直接改 post_content 欄值一樣生效,這樣就不會產生新的舊版資料。 #直接改 post_title 、 post_name 也生效。 ===附件=== 實體是圖照,在 wp_posts 中有一筆說明資料,其 comment_status 欄為 open #實體在 wordpress/wp-content/uploads/年/月/ 中,由 guid 欄指示路徑 #post_title 欄和 post_name 都是圖照的檔名(不含副檔名) #頁中以 a 標籤內包 img 標籤表達。 #post_status 欄值為 inherit #post_content 欄空白 #post_parent 為插入此圖照之頁 id #post_type 為 attachment,post_mime_type 欄指示圖照格式,如:image/png ===讓頁可以執行php=== #安裝 Exec-PHP 外掛 #*到WordPress後台,點擊【外掛】→【新增外掛】,進入後在搜尋欄位輸入「Exec-PHP」並點擊﹝搜尋﹞。 #*找到名為「Exec-PHP」的外掛,點擊右方的「安裝」,再點擊﹝立刻安裝﹞。 #*系統就會開始自動安裝外掛,安裝完成後請點擊「啟用外掛」。 #下載 Exec-PHP 中文語系檔 #*到[http://cloud1.myweb.hinet.net/download/wp/exec-php_zh_TW_4_9.zip http://cloud1.myweb.hinet.net/download/wp/exec-php_zh_TW_4_9.zip]下載中文語系檔。 #*解壓縮得 exec-php-zh_TW.mo 和 exec-php-zh_TW.po #*上傳到「/wp-content/plugins/exec-php/languages」目錄中 #到WordPress後台,點擊【設定】→【Exec-PHP】,然後按照自己的需求進行設定。
返回到「
Wordpress/頁
」。
導覽選單
個人工具
登入
命名空間
頁面
討論
變體
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
近期變更
隨機頁面
MediaWiki說明
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊