最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp list table - `bulk_edit_custom_box` mess the input fields

programmeradmin2浏览0评论

I'm trying to create a bulk-edit plugin. Here is how Wordpress builk edit form looks by default:

Than I add the following code:

add_action( 'bulk_edit_custom_box', 'my_bulk_edit_custom_box', 10, 2 );
function my_bulk_edit_custom_box( $column_name, $post_type ) {  
    ?>
    <fieldset class="inline-edit-col-right">
        <label class="inline-edit-<?php echo $column_name; ?>">
            <span class="title">Custom</span>
            <select class="<?php echo $column_name; ?>" name="<?php echo $column_name; ?>">
                <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
            </select>
        </label>
    </fieldset>
    <?php
}

And the mystery is that form now looks like that:

The question is why field "Tags" jumps down? And is there is a way prevent tags input box from moving anywhere?

发布评论

评论列表(0)

  1. 暂无评论