Can be done easily with a shortcode:
[members-only]...content...[/members-only]
The shortcode will return content for members, or text ‘<h3>This is for members only!</h3>
‘, for non member request. The callback function of the shortcode will check who made a request, and return display data accordingly. Any other text on page/post will be displayed as is. For more info about shortcodes see: Shotcodes API
Related Posts:
- Membership / subscription plugins – alternatives [closed]
- Allowing members to upload photos to their profile
- Add new password rule to Ultimate Member register form
- Change post permalink to external URL from custom field
- login to wordpress with Get variables instead of Post
- Change Permalinks Structure to a Sequential Number for Each Post?
- Publish Post After Click On A Link
- Alter post slug by a filter that is fired just after a post is created
- WP get_permalink Return Wrong URL
- Is it possible to block subscriber users to changing its password?
- How to add nofollow on all external links without plugin?
- Custom url structure for custom template
- Problem protecting a page with a password
- How to create a word press user with hashedpassword
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- Social sharing post’s shortlink instead of permalink
- Mixed unrelated taxonomy in permalink
- How can I capture Memberpress user info after signup [closed]
- Load custom PHP on a custom URL via a plugin
- Plugin appends ugly URL string to index
- How to make a proper custom post type link
- Pagination Broken on Static Pages but Works on Blog Articles
- Outbound link autometic converted into linkdirect , and not opening
- Modifying Author Link to add Author Meta in URL
- SEO Friendly URL on dynamic product page produced via shortcode
- Change permalinks of custom post type ‘question’ as post id or any random number once
- How to create restrict content to users (by user, not by role)
- Using Wishlist Member and I need to access a user’s status
- Reoccurring 404 Errors on all subpages
- Permalinks stopped working after migration with WP all-in-one migration plugin
- How to remove custom post type and add category and post name
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- Plugin generated taxonomies’ permalinks with custom placeholders
- Implementing an image hosting website using WordPress? [closed]
- Is there a social members only login plugin for WordPress? [closed]
- Paid Membership Pro with ACF [closed]
- Completely disabling password reset/recovery
- This WordPress plugin isn’t creating links correctly
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- flush_rewrite_rules() not working with update_option_{$option}
- Using WordPress to build membership Page
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- How to embed a new string in url?
- Plugin for TinyMCE to create reference to other posts
- Constructing a Pay to Download music website with wordpress
- help intercepting save_post through plugin
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Why the internal link get converted into a comment?
- Create Woocommerce account password post-checkout on thank you page
- Error in Fetching Custom Post Type parent Category URL (slug)
- Custom fields not showing up in the user info (PaidMembershipsPro)
- Hidden permalink different from displayed permalink
- Need help with Task assigning and rewarding as currency which withdrawable
- Rewrite/Change custom taxonomy slug
- Create new page in wordpress plugin which doesn’t exist
- Membership and search criteria
- Automatic chage password of pages after some time
- Student access credentials
- wp_set_password() does not work!
- How to update all in-site redirect URLs to destination URLs at once
- Creating one user access account for all the multiple sites
- post id or permalink auto-incrementing number and reset everyday
- Login issue in WordPress
- Password Protect wp-content?
- Memberpress: Can I add a second email address?
- Public WP website with one area just for members
- Category Arabic Slug shows as symbols in plugin lists
- Custom author page for custom role
- Custom role not listed
- Create password protected page, no registration
- Which membership plugin enables users to enter html links in blogs and on their profile page?
- How to setup same post slug for different categories?
- Cant visualize protected password portfolio elements
- How to add add blank non-editable wp page like default blog for use with plugin
- User / membership Plugin [closed]
- get_permalink is causing a whitescreen
- Share on social media created listing after submission
- Rogue splash page keeps popping up
- Which Membership Plugin? [closed]
- Coming soon pages with rest of site in maintenance mode
- add_external_rule – rules deleted when visiting permalinks page
- Custom user data capture form with auto membership ID
- How to maintain WordPress permalink structure with custom content with URL parameters?
- Wishlist Content
- Unwanted Links and Spam WordPress Pages and Posts
- Alter the reset password link
- Password Protected Directory Link Shows Maintenance Mode Page
- Advice on setting up private site
- 404 not found problem with URL rewrite custom category
- Is it possible to send user new password after they clicking on forgot password in word press
- Adding Category in URL in some post
- Managing users / external login
- Plugin Recommendation for selling one page content [closed]
- Looking for membership style plugin with edit option [closed]
- registration plugin [closed]
- WordPress Plugin and other pages not opening
- 404 Error on a WordPress Website, Error disappears for a while and again appears
- Getting 400 Error in wordpress website
- Changing the “OT Process” Plugin’s Default Slug of /process/