Title: Plugin not work.
Last modified: August 22, 2016

---

# Plugin not work.

 *  Resolved [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/)
 * Hello.
 * The plugin not work After I activated.
 * I tried to Protect some Text.
 * I tested On my Server. It show this on the post.
 *     ```
       class=”content-protector-form-instructions”>
       This content is protected. Please enter the password to access it.
   
        class=”content-protector-password” type=”text” placeholder=”Enter Password” value=””/>
        type=”hidden” value=”1 years”/>
       value=”$2y$14$8eI1Ll5IpIS9bxwFY9CobeOmGdAbnx1NMjQCyEAG3Hfe7ILBK6wna”/>
       value=”1cb251ec0d568de6a929b520c4aed8d1″/>
        class=”content-protector-form-submit” type=”submit”
       value=”Submit”/>
       ```
   
 * Here is the Screenshot: [http://i.imgur.com/m4fhFFq.png](http://i.imgur.com/m4fhFFq.png)
 * Best Regards
 * [https://wordpress.org/plugins/content-protector/](https://wordpress.org/plugins/content-protector/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-not-work-10/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-not-work-10/page/2/?output_format=md)

 *  [K. Tough](https://wordpress.org/support/users/kjvtough/)
 * (@kjvtough)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951050)
 * Hi, jangsan.
 * Looks like something is mangling the access form HTML code. What other plugins
   are you running?
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951055)
 * I m using Plugins:
 * WP No Category Base
    WP-PostViews WP-PostRatings WordPress Popular Posts Google
   XML Sitemaps Tabber Tabs Widget Frontpage category filter Google XML Sitemaps
   WP Clean Up
 * I think the problem is “WP No Category Base”.But I Deactivated it.Because all
   the Post Links will be changed..
 * Best Regards
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951056)
 * Hello,Sir
    I just tried to Deactivated all Plugins. But still not work.
 * Best Regards
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951057)
 * I m doing test on my Localhost
 * [content_protector password=”123456″]11111111111111111111111111111[/content_protector]
 * Did I post the right way??
 * Best Regards
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951060)
 * Sorry. I just tried on other themes.Works well.
 *  [K. Tough](https://wordpress.org/support/users/kjvtough/)
 * (@kjvtough)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951061)
 * Might be something hooking into the `the_content` filter in your theme (something
   in your `functions.php`, maybe). Take a look at [https://wordpress.org/support/topic/odd-code-on-page?replies=8](https://wordpress.org/support/topic/odd-code-on-page?replies=8)
   for a possible solution.
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951063)
 * Hello,Sir
 * I tried this way. ([https://wordpress.org/support/topic/odd-code-on-page?replies=8](https://wordpress.org/support/topic/odd-code-on-page?replies=8))
   But it not work.
 * Here are my Functions:
 *     ```
       <?php
       function get_related_posts($post_id, $tags = array()) {
       	$query = new WP_Query();
   
       	if($tags) {
       		foreach($tags as $tag) {
       			$tagsA[] = $tag->term_id;
       		}
       	}
   
       	$args = wp_parse_args($args, array(
       		'showposts' => 6,
       		'post__not_in' => array($post_id),
       		'category__not_in' => array('51','52'),  // 不包括的分类ID
       		'tag__in' => $tagsA,
       		'ignore_sticky_posts' => 1,
       	));
   
       	$query = new WP_Query($args);
   
         	return $query;
       }
   
       function kriesi_pagination($pages = '', $range = 2)
       {
            $showitems = ($range * 2)+1;  
   
            global $paged;
            if(empty($paged)) $paged = 1;
   
            if($pages == '')
            {
                global $wp_query;
                $pages = $wp_query->max_num_pages;
                if(!$pages)
                {
                    $pages = 1;
                }
            }   
   
            if(1 != $pages)
            {
                echo "<div id='pagination'><ul>";
                if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<li><a href='".get_pagenum_link(1)."'><span class='arrows'>&laquo;</span> First</a></li>";
                if($paged > 1 && $showitems < $pages) echo "<li><a href='".get_pagenum_link($paged - 1)."'><span class='arrows'>&lsaquo;</span> Previous</a></li>";
   
                for ($i=1; $i <= $pages; $i++)
                {
                    if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
                    {
                        echo ($paged == $i)? "<li class='active'>".$i."</li>":"<li><a href='".get_pagenum_link($i)."' class='inactive' >".$i."</a></li>";
                    }
                }
   
                if ($paged < $pages && $showitems < $pages) echo "<li><a href='".get_pagenum_link($paged + 1)."'>Next <span class='arrows'>&rsaquo;</span></a></li>";
                if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) echo "<li><a href='".get_pagenum_link($pages)."'>Last <span class='arrows'>&raquo;</span></a></li>";
                echo "</ul></div>\n";
            }
       }
   
       function string_limit_words($string, $word_limit)
       {
       	$words = explode(' ', $string, ($word_limit + 1));
   
       	if(count($words) > $word_limit) {
       		array_pop($words);
       	}
   
       	return implode(' ', $words);
       }
   
       //不同的文章分类调用不同的 single.php文件
       function post_is_in_descendant_category( $cats, $_post = null )
       {
       foreach ( (array) $cats as $cat ) {
       // get_term_children() accepts integer ID only
       $descendants = get_term_children( (int) $cat, 'category');
       if ( $descendants && in_category( $descendants, $_post ) )
       return true;
       }
       return false;
       }
       //Starring Tags
       function starring_tags() {
       register_taxonomy(
       'starring',
       'post',
       array(
       'hierarchical' => false, 'label' => 'Starring',
       'query_var' => true, 'rewrite' => true));
       }
       add_action('init', 'starring_tags', 0);
       //Studio Tags
       function studio_tags() {
       register_taxonomy(
       'studio',
       'post',
       array(
       'hierarchical' => false, 'label' => 'Studio',
       'query_var' => true, 'rewrite' => true));
       }
       add_action('init', 'studio_tags', 0);
       //Categories Tags
       function categories_tags() {
       register_taxonomy(
       'categories',
       'post',
       array(
       'hierarchical' => false, 'label' => 'Categories',
       'query_var' => true, 'rewrite' => true));
       }
       add_action('init', 'categories_tags', 0);
       ```
   
 *     ```
       <?php
   
       // Register Navigations
       register_nav_menu('top_navigation', 'Top Navigation');
       register_nav_menu('main_navigation', 'Main Navigation');
   
       // Add post thumbnail functionality
       add_theme_support('post-thumbnails', array('post'));
       add_image_size('recent-posts-image', 50, 50, true);
       add_image_size('slider-image-s', 125, 175, true);
   
       // Register Widgetized Areas
       if(function_exists('register_sidebar')) {
       	register_sidebar(array(
       		'name' => 'Sidebar',
       		'before_widget' => '<div class="widget">',
       		'after_widget' => '</div>',
       		'before_title' => '<h4>',
       		'after_title' => '</h4>',
       	));
   
       	register_sidebar(array(
       		'name' => 'Footer Widget 1',
       		'before_widget' => '<div class="widget">',
       		'after_widget' => '</div>',
       		'before_title' => '<h4>',
       		'after_title' => '</h4>',
       	));
   
       	register_sidebar(array(
       		'name' => 'Footer Widget 2',
       		'before_widget' => '<div class="widget">',
       		'after_widget' => '</div>',
       		'before_title' => '<h4>',
       		'after_title' => '</h4>',
       	));
   
       	register_sidebar(array(
       		'name' => 'Footer Widget 3',
       		'before_widget' => '<div class="widget">',
       		'after_widget' => '</div>',
       		'before_title' => '<h4>',
       		'after_title' => '</h4>',
       	));
       }
   
       // Include boostrap file for the pyre theme framework
       include_once('framework/bootstrap.php');
   
       // Shortcodes
       include_once('shortcodes.php');
   
       // Custom Functions
       include_once('framework/functions.php');
   
       // Profile Metaboxes
       include_once('framework/profile.php');
   
       // Translation
       load_theme_textdomain('pyre', get_template_directory() . '/languages');
       $locale = get_locale();
       $locale_file = TEMPLATEPATH . '/languages/' . $locale . '.php';
       if(is_readable($locale_file)) {
       	require_once($locale_file);
       }
   
       // How comments are displayed
       function boulevard_comment($comment, $args, $depth) {
       	$GLOBALS['comment'] = $comment; ?>
       	<li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
   
       		<div class="the-comment">
   
       			<?php echo get_avatar($comment,$size='60'); ?>
   
       			<div class="comment-arrow"></div>
   
       			<div class="comment-box">
   
       				<div class="comment-author">
       					<strong><?php echo get_comment_author_link() ?></strong>
       					<small><?php printf(__('%1$s at %2$s', 'pyre'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('Edit', 'pyre'),'  ','') ?> - <?php comment_reply_link(array_merge( $args, array('reply_text' => __('Reply', 'pyre'), 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?></small>
       				</div>
   
       				<div class="comment-text">
       					<?php if ($comment->comment_approved == '0') : ?>
       					<em><?php _e('Your comment is awaiting moderation.', 'pyre') ?></em>
       					<br />
       					<?php endif; ?>
       					<?php comment_text() ?>
       				</div>
   
       			</div>
   
       		</div>
   
       <?php }
   
       // Trim end of excerpt
       function pyre_trim_excerpt($text) {
       	return rtrim($text, '[...]');
       }
       add_filter('get_the_excerpt', 'pyre_trim_excerpt');
   
       function insert_image_src_rel_in_head() {
       	global $post;
       	if ( !is_singular()) //if it is not a post or a page
       		return;
       	if(has_post_thumbnail( $post->ID )) { //the post does not have featured image, use a default image
       		$thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' );
       		echo '<meta property="og:image" content="' . esc_attr( $thumbnail_src[0] ) . '"/>';
       	}
       	echo "\n";
       }
       add_action( 'wp_head', 'insert_image_src_rel_in_head', 5 );
       ```
   
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951064)
 * I got the same isuee..
 * [https://wordpress.org/support/topic/odd-code-on-page?replies=8](https://wordpress.org/support/topic/odd-code-on-page?replies=8)
 *     ```
       <p><div id="content-protector-ca1902b8e4209eaeb85441dd3aa2f51c" class="content-protector-access-form">
       <form id="content-protector-access-form-ca1902b8e4209eaeb85441dd3aa2f51c" method="post" action="" autocomplete="off">
       <div id="content-protector-form-instructions-ca1902b8e4209eaeb85441dd3aa2f51c"<br />
                        class=”content-protector-form-instructions”>
       <p>This content is protected. Please enter the password to access it.</p>
       </div>
       <p>                        <input name="content-protector-password" id="content-protector-password-ca1902b8e4209eaeb85441dd3aa2f51c"<br />
                      class=”content-protector-password” type=”password” placeholder=”Enter Password” value=””/><br />
                       <input name="content-protector-token" id="content-protector-token-ca1902b8e4209eaeb85441dd3aa2f51c" type="hidden"<br />
                      value=”in5mLzE8S3rnM”/><br />
               <input name="content-protector-ident" id="content-protector-ident-ca1902b8e4209eaeb85441dd3aa2f51c" type="hidden"<br />
                      value=”ca1902b8e4209eaeb85441dd3aa2f51c”/><br />
               <input name="content-protector-submit" id="content-protector-submit-ca1902b8e4209eaeb85441dd3aa2f51c"<br />
                      class=”content-protector-form-submit” type=”submit”<br />
                      value=”Submit”/><br />
           </form>
       </div>
       </p>
       ```
   
 *  [K. Tough](https://wordpress.org/support/users/kjvtough/)
 * (@kjvtough)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951065)
 * If it’s working with other themes, something in the original theme must be filtering
   the content. What are you using for a theme?
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951068)
 * Here is theme ( Boulevard ).
 * [https://drive.google.com/file/d/0B7WeJ1D1cmwpRjVlU18tVzdkZW8/view?usp=sharing](https://drive.google.com/file/d/0B7WeJ1D1cmwpRjVlU18tVzdkZW8/view?usp=sharing)
 * Best Regards
 *  [K. Tough](https://wordpress.org/support/users/kjvtough/)
 * (@kjvtough)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951117)
 * Are you using the `[raw]` shortcode?
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951118)
 * No.I tried to remove parts of codes from theme one by one.. But still not work.
   That’s strange.
 *  [K. Tough](https://wordpress.org/support/users/kjvtough/)
 * (@kjvtough)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951119)
 * Just for fun, try commenting out these lines (22-25) in `shortcodes.php`:
 *     ```
       remove_filter('the_content', 'wpautop');
       remove_filter('the_content', 'wptexturize');
   
       add_filter('the_content', 'my_formatter', 99);
       ```
   
 *  Thread Starter [jangsan](https://wordpress.org/support/users/jangsan/)
 * (@jangsan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951121)
 * Hello,Sir
    It works. Thanks a lot. You are the best.:)
 *  [K. Tough](https://wordpress.org/support/users/kjvtough/)
 * (@kjvtough)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/#post-5951122)
 * No problem. The only downside is that you won’t be able to use the `[raw]` shortcode.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-not-work-10/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-not-work-10/page/2/?output_format=md)

The topic ‘Plugin not work.’ is closed to new replies.

 * ![](https://ps.w.org/content-protector/assets/icon-256x256.png?rev=2206760)
 * [Passster - Password Protect Pages and Content](https://wordpress.org/plugins/content-protector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-protector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-protector/)
 * [Active Topics](https://wordpress.org/support/plugin/content-protector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-protector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-protector/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [jangsan](https://wordpress.org/support/users/jangsan/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-work-10/page/2/#post-5951123)
 * Status: resolved