Forums

[resolved] HowTo: Add a custome postbox (2 posts)

  1. MarkusF
    Member
    Posted 3 years ago #

    Hi,
    I have upgraded to WP 2.7 (which is the best ever;-).
    Having some trouble with my own plugin postbox when editing articles in the admin interface. It is shown above the black wordpress header with the WORDPRESS logo. I guess this is due to the new functionality of dragging the postboxes. Could you pls let me know, how to add a custom postbox in the admin GUI. Do we need to register a postbox somehow? Is there a (short) tutorial available already?

    For now I use the following template code:
    ....

    <div id="wpMyOWnPlugin" class="postbox if-js-open">
    <h3>MyOwnHeadline</h3>
    <div class="inside">
    ....
    </div>
    </div>

    Many thanks

    Markus

  2. MarkusF
    Member
    Posted 3 years ago #

    HI,

    well, solved the issue...I didn't use add_meta_box, which was already introduced by WP2.5:

    <?php
    add_meta_box('id', 'title', 'callback', 'page', 'context', 'priority'); ?>

    So, this issue might not be related to WP2.7. But I guess,

    add_action('dbx_post_advanced', 'myplugin_old_custom_box' );

    seems not to work anymore. Hope that makes sense....

    Markus

Topic Closed

This topic has been closed to new replies.

About this Topic