WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: And The Winner Is…] Custom post types?

[Resolved] [Plugin: And The Winner Is…] Custom post types?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rocio Valdivia
    Member

    @_dorsvenabili

    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 🙂

    betadog
    Participant

    @betadog

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

    Rocio Valdivia
    Member

    @_dorsvenabili

    You’re welcome! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: And The Winner Is…] Custom post types?’ is closed to new replies.