• 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)

    https://www.ads-software.com/plugins/word-count-and-limit/

Viewing 1 replies (of 1 total)
  • Plugin Author jojaba

    (@jojaba)

    Hello thanks for the feedback and the patch.

    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.

    Somme bugs here and there? Just let me now what you found please so that I can release a better version ??

Viewing 1 replies (of 1 total)
  • The topic ‘Patch to properly support custom post types’ is closed to new replies.