Skip to content

Instantly share code, notes, and snippets.

@linc
Created October 16, 2012 15:40

Revisions

  1. @invalid-email-address Anonymous created this gist Oct 16, 2012.
    13 changes: 13 additions & 0 deletions wp vanilla comments conditional
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <?php

    if (the_date('U') < strtotime('5 Oct 2012')) { // Where 5 Oct 2012 is the date they switched

    /* DEFAULT WORDPRESS COMMENTS TEMPLATE GOES HERE */

    } else {

    /* VANILLA COMMENTS GOES HERE */

    }

    ?>