WordPress.org

Ready to get started?Download WordPress

Forums

Good Writer Checkify
[resolved] Anotheer vote for CPT Support (4 posts)

  1. kirkward
    Member
    Posted 1 year ago #

    I left a note in the other thread but could not find a way to mark it as unresolved so as to get attention, so I am also posting here to note how fantastically useful this would be for a site with custom posts and multiple authors. If it would allow the admin to leave sets of instructions for each different post type, then the power would be unbelievable. I haven't seen anything like it in the repository!

    http://wordpress.org/extend/plugins/good-writer-checkify/

  2. pythoPhpSteve
    Member
    Plugin Author

    Posted 12 months ago #

    I'm just not sure I'll be able to get to this, I'm sorry. I have so much on my plate including a f/t job, and doing needed consulting on the side for extra cash. I do see what you mean, the benefit of adding that capability.
    The code for this plugin is open for another programmer to maybe take that on, however.

  3. kirkward
    Member
    Posted 12 months ago #

    Thanks Steve,

    I actually forgot this post, so I thank you for submitting an answer. I had solved the problem by hacking the code, and I'll insert my solution here in case any other stalwarts want to use it on some custom posts.

    My situation was that I only wanted to add GWC to my custom posts, and omit if from regular posts and pages. So, in the good-writer-checkify-admin.php file, I commented out the code that adds the meta box to the post and the page add/edit screen, and then added a copy of that code and inserted the name of my custom post type.

    Using that method, GWC appears on the CPT, but not on post or page type add/edit screens.

    Here is a copy for others to use. Just change the name of the custom post type to the name of your own custom post type.

    /* Adds a box to the main column on the Post and Page edit screens */
    	function gwc_div_carousel() {
    		$this->enqueue_metabox_styles();
    /*
      	add_meta_box(
    			'gwc_sectionid',
    			__( 'Good Writer Checkify', 'gwc_textdomain' ),
    			array($this, 'gwc_print_div_carousel'),
    			'post'
    		);
    */
    
    /*
     	add_meta_box(
    			'gwc_sectionid',
    			__( 'Good Writer Checkify', 'gwc_textdomain' ),
    			array($this, 'gwc_print_div_carousel'),
    			'page'
    		);
    */
    
    		add_meta_box(
    			'gwc_sectionid',
    			__( 'Good Writer Checkify', 'gwc_textdomain' ),
    			array($this, 'gwc_print_div_carousel'),
    			'mycustomposttype'
    		);
    
    	}
  4. signale
    Member
    Posted 10 months ago #

    thanks goes to kirkward for CPT, have the same need.

    And the plugin is great, so to the author a huge thanks too :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.