WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type Creator
WCK creates meta box to wrong page (1 post)

  1. Takuro Hishikawa
    Member
    Posted 1 year ago #

    WCK adds meta box to admin edit post page, when sign in with except administrator. It maybe a bug. my fix:

    - add_meta_box($this->args['metabox_id'], $this->args['metabox_title'], array( &$this, 'wck_content' ), $wck_pages_hooknames[$this->args['post_type']], 'normal', 'low', array( 'meta_name' => $this->args['meta_name'], 'meta_array' => $this->args['meta_array']) );
    + if( $wck_pages_hooknames[$this->args['post_type']])
    + add_meta_box($this->args['metabox_id'], $this->args['metabox_title'], array( &$this, 'wck_content' ), $wck_pages_hooknames[$this->args['post_type']], 'normal', 'low', array( 'meta_name' => $this->args['meta_name'], 'meta_array' => $this->args['meta_array']) );

    http://wordpress.org/extend/plugins/custom-post-type-creator/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Takuro Hishikawa
  • This topic is not resolved
  • WordPress version: 3.4.2

Tags

No tags yet.