0
A
回答
0
據我所知,你到底,你要展現在後右側的編輯表單元框相關的功能?這是您的解決方案。
function bilge_edit_custom_box() {
global $post;
echo '<input type="hidden" name="featured_noncename" id="featured_noncename" value="' . wp_create_nonce(plugin_basename(__FILE__)) . '" />';
$featured = get_post_meta($post->ID,'featured',true);
if($featured=="1"){
$checked1 = ' checked="checked" ';
}else{
$checked1 = '';
}
$summary = get_post_meta($post->ID,'summary',true);
if($summary=="1"){
$checked2 = ' checked="checked" ';
}else{
$checked2 = '';
}
$categored = get_post_meta($post->ID,'categored',true);
if($categored=="1"){
$checked3 = ' checked="checked" ';
}else{
$checked3 = '';
}
echo '<p><input type="checkbox" id="featured" name="featured" value="1" '.$checked1.' /> <label for="featured"><strong>'. _e('Featured Posts', 'bilge') .'</strong></label></p>';
echo '<p><input type="checkbox" id="summary" name="summary" value="1" '. $checked2.' /> <label for="summary"><strong>'. _e('Summary Posts', 'bilge') .'</strong></label></p>';
echo '<p><input type="checkbox" id="categored" name="categored" value="1" '. $checked3.' /> <label for="categored"><strong>'. _e('Category Based Posts', 'bilge') .'</strong></label></p>';
}
相關問題
- 1. 將facebook按鈕添加到頁面
- 2. Woocommerce/Wordpress - 將按鈕添加到管理面板上的訂單/產品頁面
- 3. WordPress的:在添加新帖子頁面添加媒體按鈕不起作用
- 4. 將HTML頁面添加到WordPress
- 5. 將Wordpress添加到靜態HTML頁面?
- 6. 將asp.net按鈕控件添加到主頁面列表項中?
- 7. 將「添加到購物車」按鈕重定向到不同的自定義頁面在Magento中/在Magento的產品頁面中添加新按鈕
- 8. 將使用添加到主頁按鈕
- 9. 將按鈕動態添加到面板
- 10. 如何在嚮導頁面中添加新按鈕並更新按鈕名稱
- 11. 將FB分享按鈕添加到登錄後的頁面
- 12. wordpress添加頁面
- 13. 將按鈕添加到新元素
- 14. jqgrid添加自定義按鈕導航層轉到新頁面
- 15. 將Html Editor Extender添加到頁面後,按鈕停止工作
- 16. 將按鈕添加到Facebook頁面 - appid是什麼?
- 17. 將幫助按鈕添加到InnoSetup嚮導頁面
- 18. 如何將「like」按鈕添加到html博客頁面?
- 19. 我不能將按鈕添加到頁面
- 20. 如何將按鈕添加到頁面控制器
- 21. 將Facebook分享按鈕添加到靜態HTML頁面
- 22. 將分享按鈕添加到應用頁面
- 23. 使用JavaScript將按鈕添加到HTML頁面
- 24. Wordpress插件 - 添加新頁面
- 25. 重新加載wordpress頁面,如果按鈕被點擊
- 26. 將新頁面添加到Django Admin
- 27. 重新加載按鈕上的頁面
- 28. 將按鈕從一個按鈕加載到外部頁面
- 29. 將按鈕從包裝面板添加到按鈕陣列
- 30. 如何將模板頁腳添加到wordpress的所有頁面
我已添加的屏幕截圖 – 2010-11-25 10:32:09