WordPress.org

Ready to get started?Download WordPress

Forums

And The Winner Is...
[resolved] Custom post types? (4 posts)

  1. betadog
    Member
    Posted 2 years ago #

    Would it be very hard to make this work with custom post types?

    http://wordpress.org/extend/plugins/and-the-winner-is/

  2. Rocio Valdivia
    Member
    Posted 2 years ago #

    Hi betadog!

    To make it work with your custom post types, do this:

    /wp-content/plugins/and-the-winner-is/atwi.php -> line 98

    Change this:

    public function AddMetaBox() {
        add_meta_box(ATWI_DOMAIN, ATWI, array(&$this, 'ContestMetaBox'), 'post', 'side');
    }

    For this:

    public function AddMetaBox() {
        add_meta_box(ATWI_DOMAIN, ATWI, array(&$this, 'ContestMetaBox'), 'post', 'side');
        add_meta_box(ATWI_DOMAIN, ATWI, array(&$this, 'ContestMetaBox'), 'slug_of_your_custom_post_type', 'side');
      }

    Works perfectly :)

  3. betadog
    Member
    Posted 2 years ago #

    Thank you very much, you've made my day!

  4. Rocio Valdivia
    Member
    Posted 2 years ago #

    You're welcome! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic