Patch to properly support custom post types
-
Hello,
Sorry I don’t have the time to do much more than provide you with a slight change to your code that fixes support for custom post types:
Line 240 in wpwcl.php as published:
<input type="checkbox" id="impacted_post_type_option_author" name="wpwcl_settings_options[impacted_post_types_option][]" value="page"<?php if (in_array($custom_post_type, $impacted_post_types_option)) echo ' checked'; ?> /> <?php echo $custom_post_type ?><br>
Line 240 in wpwcl.php, patched so value attribute matches post type
<input type="checkbox" id="impacted_post_type_option_author" name="wpwcl_settings_options[impacted_post_types_option][]" value="<?php echo $custom_post_type ?>"<?php if (in_array($custom_post_type, $impacted_post_types_option)) echo ' checked'; ?> /> <?php echo $custom_post_type ?><br>
Overall, a nice & simple plugin that does it’s job. Javascript alert function as a warning is a little obtrusive though. Some bugs here and there. But thank you for writing this.
-Aaron Silber (aaronsilber.me)
- The topic ‘Patch to properly support custom post types’ is closed to new replies.