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. 將按鈕添加到特定頁面
- 3. Woocommerce/Wordpress - 將按鈕添加到管理面板上的訂單/產品頁面
- 4. WordPress的:在添加新帖子頁面添加媒體按鈕不起作用
- 5. 向頁面添加按鈕
- 6. 將WooCommerce鉤子添加到Wordpress頁面
- 7. 將Wordpress添加到靜態HTML頁面?
- 8. 將jQuery添加到WordPress頁面
- 9. 將HTML頁面添加到WordPress
- 10. 將javascript添加到wordpress頁面
- 11. WordPress的頁面按鈕
- 12. 按鈕鏈接到WordPress的頁面
- 13. 將asp.net按鈕控件添加到主頁面列表項中?
- 14. 將「添加到購物車」按鈕重定向到不同的自定義頁面在Magento中/在Magento的產品頁面中添加新按鈕
- 15. 將使用添加到主頁按鈕
- 16. 將主頁按鈕添加到ActionBarSherlock
- 17. 將按鈕動態添加到面板
- 18. 將按鈕添加到子面板
- 19. 添加到收藏夾添加喜愛的html頁面的按鈕頁面
- 20. 如何在嚮導頁面中添加新按鈕並更新按鈕名稱
- 21. 將FB分享按鈕添加到登錄後的頁面
- 22. 動態地將喜歡的按鈕添加到頁面
- 23. 如何將固定按鈕添加到頁面的右下方
- 24. 將頁面加載到wordpress
- 25. 使用jQuery Mobile將重新加載按鈕添加到Ajax頁面
- 26. 將「添加另一個精選圖像」按鈕添加到WordPress
- 27. wordpress添加頁面
- 28. 將按鈕添加到新元素
- 29. jqgrid添加自定義按鈕導航層轉到新頁面
- 30. 在wordpress中添加頁面標題到最新的帖子frontpage
我已添加的屏幕截圖 – 2010-11-25 10:32:09