Do you know this plugin? ( Wordpress )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robocrop
    Confirmed User
    • Aug 2008
    • 2785

    #1

    Do you know this plugin? ( Wordpress )

    I was wondering, is there any plugin that can make the posts I choose only viewable by site members?

    So if they arent registrerd they cannot view the post I decide.


    Thanks in advance!
  • Jdoughs
    Confirmed User
    • Mar 2004
    • 5794

    #2
    http://butlerblog.com/wp-members/

    and also

    http://wp-member.com/
    LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
    Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
    AmeriNOC - Proudly hosted @ AmeriNOC!

    Comment

    • fris
      Too lazy to set a custom title
      • Aug 2002
      • 55679

      #3
      use a shortcode so you can set it for only the posts you want

      add this to your themes functions.php file

      Code:
      add_shortcode( 'member', 'member_check_shortcode' );
      
      function member_check_shortcode( $atts, $content = null ) {
      	 if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
      		return $content;
      	return '';
      }
      then in your post

      Code:
      [member]
      This text will be only displayed to registered users.
      [/member]
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      Comment

      • pornpf69
        Too lazy to set a custom title
        • Jun 2004
        • 15782

        #4
        can't you simply mark the posts are PRIVATE?

        Comment

        • Robocrop
          Confirmed User
          • Aug 2008
          • 2785

          #5
          Originally posted by Jdoughs
          Originally posted by fris
          use a shortcode so you can set it for only the posts you want

          add this to your themes functions.php file

          Code:
          add_shortcode( 'member', 'member_check_shortcode' );
          
          function member_check_shortcode( $atts, $content = null ) {
          	 if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
          		return $content;
          	return '';
          }
          then in your post

          Code:
          [member]
          This text will be only displayed to registered users.
          [/member]

          Thanks to both of ya :>

          Comment

          Working...