Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 将列添加到后期编辑页面_Wordpress - Fatal编程技术网

Wordpress 将列添加到后期编辑页面

Wordpress 将列添加到后期编辑页面,wordpress,Wordpress,在仪表板区域中,您可以选择1-4列。但是,当您添加或编辑新帖子/页面时,您只能选择1-2列。我希望能够选择1-3甚至1-4列。我有很多自定义分类法,我想通过使用两个以上的列来更恰当地安排它们 下面列出了一个解决方案,itt在Wordpress 3.2安装上工作,但在当前的3.4上没有。它可能只需要一个小的调整,但,我似乎无法找到它。这是上面链接的解决方案 'add_action( 'submitpost_box', 'third_column_edit_form' ); add_action(

在仪表板区域中,您可以选择1-4列。但是,当您添加或编辑新帖子/页面时,您只能选择1-2列。我希望能够选择1-3甚至1-4列。我有很多自定义分类法,我想通过使用两个以上的列来更恰当地安排它们

下面列出了一个解决方案,itt在Wordpress 3.2安装上工作,但在当前的3.4上没有。它可能只需要一个小的调整,但,我似乎无法找到它。这是上面链接的解决方案

'add_action( 'submitpost_box', 'third_column_edit_form' );
add_action( 'submitpage_box', 'third_column_edit_form' );
function third_column_edit_form() {
    global $post_type, $post;
    //if( 'your-type' != $post_type )
    //return;
    $side_meta_boxes2 = do_meta_boxes( $post_type, 'column3', $post );
}

add_action( 'admin_print_styles-post.php',     'third_column_css');
add_action( 'admin_print_styles-post-new.php', 'third_column_css');
function third_column_css () {
    global $post_type;
        //if( 'your-type' != $post_type )
         //     return;
    ?>
    <style type="text/css">
    #side-info-column {
      width: 580px;
    }
#post-body {
  margin-right: -620px !important;
}

#post-body-content {
  margin-right: 600px !important;
}

#column3-sortables {
  width: 280px;
  float: right;
  display: block;
  min-height: 200px;
}

#side-sortables {
  float: left;
  display: block;
  min-height: 200px;
}

/* Style copied from #side-sortables */

#column3-sortables .category-tabs, #column3-sortables .category-tabs {
  margin-bottom: 3px;
}

#column3-sortables .category-tabs li, #column3-sortables .add-menu-item-tabs li {
  display: inline;
}

#column3-sortables .category-tabs a, #column3-sortables .add-menu-item-tabs a {
  text-decoration: none;
}

#column3-sortables .category-tabs .tabs a, #column3-sortables .add-menu-item-tabs .tabs a {
  color: #333;
}
</style>
<?php
}'
'add_action('submitpost_box','third_column_edit_form');
添加动作(“提交页面框”、“第三列编辑表单”);
函数第三列编辑表单(){
全局$post_类型,$post;
//如果('your type'!=$post\u type)
//返回;
$side_meta_boxes2=do_meta_boxes($post_type,'column3',$post);
}
添加操作('admin\u print\u styles-post.php','third\u column\u css');
添加操作('admin\u print\u styles-post-new.php','third\u column\u css');
函数第三列{
全球$post_类型;
//如果('your type'!=$post\u type)
//返回;
?>
#侧面信息栏{
宽度:580px;
}
#柱体{
右边距:-620px!重要;
}
#正文后内容{
右边距:600px!重要;
}
#第3列分类表{
宽度:280px;
浮动:对;
显示:块;
最小高度:200px;
}
#旁站排序{
浮动:左;
显示:块;
最小高度:200px;
}
/*从#侧排序表复制的样式*/
#第3列可排序。类别选项卡,#第3列可排序。类别选项卡{
利润底部:3倍;
}
#第3列可排序。类别选项卡li,#第3列可排序。添加菜单项选项卡li{
显示:内联;
}
#第3列可排序。类别选项卡a,#第3列可排序。添加菜单项选项卡a{
文字装饰:无;
}
#column3排序表。类别选项卡。选项卡a,#column3排序表。添加菜单项选项卡。选项卡a{
颜色:#333;
}

您错误地链接到Stack Exchange上的用户,而不是您尝试的解决方案。我删除了该链接,因为它有点不相关,因为问题中列出了适用于3.2的解决方案。我只是想说明它的来源。