• Resolved kirkward

    (@kirkward)


    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!

    https://www.ads-software.com/extend/plugins/good-writer-checkify/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pythoPhpSteve

    (@pythophpsteve)

    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.

    Thread Starter kirkward

    (@kirkward)

    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'
    		);
    
    	}

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

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Anotheer vote for CPT Support’ is closed to new replies.