Plugin Author
Mike
(@mgsisk)
Password-protecting the post is probably your best bet at the moment, and Webcomic should be respecting that and hiding the comic image until the post password has been entered (I’ll file this as a bug on GitHub). A more robust way to handle this might be something to look into for a future enhancement to Webcomic as well.
So you don’t have to wait around for all that, though: you should be able to get Webcomic working properly with password-protected posts by finding this line (524) in webcomic/-/php/tags.php:
if ( $the_post = get_post( $the_post ) and isset( self::$config[ 'collections' ][ $the_post->post_type ] ) and $attachments = self::get_attachments( $the_post->ID ) ) {
and changing it to this:
if ( $the_post = get_post( $the_post ) and isset( self::$config[ 'collections' ][ $the_post->post_type ] ) and ! post_password_required() and $attachments = self::get_attachments( $the_post->ID ) ) {
That should prevent Webcomic images from showing up on password protected posts until the password has been entered.
Awesome! Thanks so much. Is there a quick way to automate this so comics are only password protected on the first day and on the next day they show up as normal posts?