jlawlor wrote:I am looking to protect part of a post or page but can't find any docs that address this.
In Wishlist member content can be restricted by inserting <<more>>
It would be great to have the ability to insert test that is only for a specific user level or above.
ie. [user3] some text for viewing user level 3 and 4[/user]
Have I missed something in the docs?
Hi Jlawlor
I'd use
- Code: Select all
<?php if(is_user_logged_in()){ ?>
Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
Some public content.(can be link to your loginout, just add [code]<?php wp_loginout(); ?>[/code]
<?php } ?>
You can use a dynamic loginout script so they wont leave the page they are in.
It's the easiest way to protect your content regardless
of any level.
If you are worrying about loosing some
of your site ranking with Google or any other search engine, I really recommend using the above code. I also noticed decrease in site searches and the amount
of new visitors to my site when using the Cat/
Post/Page Access Restrictions.
Hope that helps
Sam