WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Capabilities saves but doesn't shows (8 posts)

  1. mmasias
    Member
    Posted 1 year ago #

    I create a new capability string, and it works. But when I return to edit the CPT, the editor shows "posts" as a capability.

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

  2. smithwib
    Member
    Posted 1 year ago #

    I can second this. Field is reset when you come back to edit.

  3. ade11
    Member
    Posted 1 year ago #

    me too!

  4. Vincent Wasteels
    Member
    Posted 1 year ago #

    Same here !

  5. smithwib
    Member
    Posted 1 year ago #

    There's a bug in line 1204 with 2 value attributes. Change this:

    <td><input type="text" name="cpt_custom_post_type[capability_type]" tabindex="6" value="post" value="<?php if ( isset( $cpt_capability ) ) { echo esc_attr( $cpt_capability ); } ?>" /> <a href="#" title="The post type to use for checking read, edit, and delete capabilities" style="cursor: help;">?</a></td>

    to this:

    <td><input type="text" name="cpt_custom_post_type[capability_type]" tabindex="6" value="<?php if ( isset( $cpt_capability ) ) { echo esc_attr( $cpt_capability ); } else echo 'post'; ?>" /> <a href="#" title="The post type to use for checking read, edit, and delete capabilities" style="cursor: help;">?</a></td>
  6. smithwib
    Member
    Posted 1 year ago #

    Looks like this has not been fixed as of version: 0.7.2.

  7. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Definitely fixed in 0.8, which will be out soon.

  8. smithwib
    Member
    Posted 1 year ago #

    Great news, and no problem -- just reapplied the fix. Thanks for a great plugin, Michael.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic