New Landing How can we help? Themeforest Theme Support Clique Password protected blog page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Clique
  • #124268
    jonathankrijgsman
    Member
    Post count: 2

    Hi there!
    First of all, the Clique theme and it is awesome!

    How can i make my blog page password protected? I made a blog page with the password protected option that is build in by wordpress but it doesn’t work with my blog page. I know that the posts have the same option but I want the whole page protected by a password

    I really need that page password protected for my graduation project at school.

    So i was hoping you can help me with setting up a password protected blog page

    Thank you!

    #124329
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide URL of your pages and wordpress admin login detail to check and resolve the issue.
    Thanks
    Mohammad

    #124622
    jonathankrijgsman
    Member
    Post count: 2
    This reply has been marked as private.
    #124665
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check it now. I edited the code for blog template.

    <?php
    /*
    Template Name: Blog
    */
    ?>
    
    <?php get_header();
    
    global $post;
    if ( !post_password_required( $post ) ) {
       
     ?>
    
    <?php
    	$blog_category = get_post_meta($post->ID, 'sf_blog_category', true);
    	$item_count = get_post_meta($post->ID, 'sf_item_count', true);
    	$blog_pagination = get_post_meta($post->ID, 'sf_blog_pagination', true);	
    ?>
    
    <!-- OPEN .inner-page-wrap -->
    <div class="inner-page-wrap">
    		
    	<div <?php post_class(); ?> id="<?php the_ID(); ?>">
    		
    		<div class="blog-wrap">
    			
    			<?php echo sf_blog_items($blog_category, $item_count, 1, false); ?>		
    		
    		</div>
    					
    	</div>
    
    <!-- CLOSE .inner-page-wrap -->
    </div>
    <?php } else { 
    echo '<div style="margin-left:200px" >'.get_the_password_form().'</div>'; 
    
     } ?>
    <!-- WordPress Hook -->
    <?php get_footer(); ?>

    Thanks
    Mohammad

    #124835
    jonathankrijgsman
    Member
    Post count: 2

    Thanks for your fast reponds!!

    #124845
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved.
    Thanks 🙂
    With Best Regards
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register