WordPress.org

Support

Support » Plugins and Hacks » [Resolved] HTTPS for home page

[Resolved] HTTPS for home page

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Ems

    @mvied

    That’s a pain. Don’t do that. You can use a piece of code in your theme’s functions.php (or in a custom plugin). Change ‘5’ to the ID of the post you don’t want to be secure.

    function custom_force_ssl( $force_ssl, $post_id = 0, $url = '' ) {
        if ( $post_id == 5 ) {
            $force_ssl = false;
        } else {
            $force_ssl = true;
        }
        return $force_ssl;
    }
    
    add_filter('force_ssl' , 'custom_force_ssl', 10, 3);
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] HTTPS for home page’ is closed to new replies.