Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password?

Search the Forum

Tips and Tricks HQ Forum » WP eMember » WP eMember F.A.Q/Instructions

WP eMember and More Tag Protection

(11 posts) (7 voices)
  • Started 1 year ago by Ivy
  • Latest reply from ramona
  • Related Topics:
    1. Teaser Content
    2. First Click Free?
    3. Problem with teaser content "more" button option
    4. WP eMember Content Protection Not Working - Common Mistakes
    5. eMember Protection Options Screen

Tags:

  • More tag protection
  • teaser
12Next »
  1. Ivy
    Administrator

    The more tag protection is for blog posts. It doesn't work on pages by default because WordPress does not allow it. You can read all about it here:

    http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

    Anyway, here is what WordPress says:

    "Please remember that the "Read More" tag is used only on the Home page which shows the latest posts. It does not work in "Pages"."

    with that said, if you are trying to create teaser content for your premium content then I think your best option would be to use the section protection feature of WP eMember:

    http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88

    You only need to protect the content that's after the more tag. So your page structure will look something similar to the following:

    -----------Start of a page---------
    Teaser content
    <--more tag-->
    [emember_protected for=2-3]
    Your secret stuff
    [/emember_protected]
    -------------End of a page---------

    Posted 1 year ago #
  2. jeffw
    Member

    Hi,

    I am trying to use the more tag protection on posts, and it still isnt working.

    Its protecting the entire post. I want to have the teaser content mainly for search engines.

    I have the post assigned to a category, either "standard" or "premium", which is for either membership level. However, i want teaser content for both types to be visible to guests.

    Posted 1 year ago #
  3. wpCommerce
    Moderator

    "I have the post assigned to a category, either standard or premium" - Did you protect the category the post belongs to? If you protect the category which includes a post, the section protection of that post will not work ( as the category overrides all the small section protections in the post with the full protection)

    Posted 1 year ago #
  4. jeffw
    Member

    Okay, so I then have to basically define in every post what I want and dont want protected through those shortcodes?

    Posted 1 year ago #
  5. amin007
    Key Master

    Section protection and More tag protection are completely different.

    When you use more tag protection you can still protect a bunch of post by their category to avoid protecting every post individually and the teaser section will show up on the blog page.

    So yes you can add a more tag in all of your blog posts and bulk protect them using a category protection. When you visit your blog page you will see the teaser.

    Where most people make the mistake is that they go to the individual post and they complain because the teaser is not there. Well the first thing to understand is how WordPress work... more tag is only visible on your blog page where you have all the recent posts displayed. More tag is not available when you go to the individual post view (where you can read the full article). If more tag is not available on individual post view then how will eMember use more tag protection?

    So are you viewing your blog page for the teaser or the individual post?

    Posted 1 year ago #
  6. rpickett
    Member

    I completely get the difference between the teaser and the protected block. Took me a minute, but it's pretty clear.

    What I want: teaser content is viewable by all, whether on blog page or on the actual post itself. Only the non-teaser (the rest of the content) should be viewable on the actual post itself by the membership level granted access to that post/category/whatever.

    I *think* to accomplish this I have to have the post like this:

    Teaser
    <!--more-->
    [emember_protected for=2]
    This is protected.
    [/emember_protected]

    where "free member" is ID 2. (it would be nice to say "everything greater than 2", or to just let this be managed by the category and just have [emember_protected])

    I have 4 levels of membership, including a free.

    Under general protection I have *none* of the items selected under each of the categories.

    I go to "free membership" general levels and also *nothing* is selected. (doesn't matter, I can actually grant the access to the post here and it still doesn't work).

    So, I have a post with the code above, explicitly allowing "free" accounts to access the content, yet, they can't. I login with my free account and it still shows "This content is for members only".

    What am I doing wrong, and what is the easiest way? I'd love it if I could just assign the protection by category, but it doesn't appear that works w/ the teaser/more tag the way I'm looking to do it.

    Thanks for your help and suggestions!

    Posted 11 months ago #
  7. rpickett
    Member

    update.

    I put in debugging code and even though the account was logged in to wp they weren't logged in to eMember. Logged out and tried to login to eMember - bad password, reset it, logged back in w/ new password using the wp login (theme comes with fancy lightbox), now it's also logged into eMember and content displays as expected.

    Still left with the same end-question:

    Is there a way to protect by category and still allow the teaser/more functionality I'm looking for above?

    Thanks!

    Posted 11 months ago #
  8. amin007
    Key Master

    Go with section protection of eMember to create teaser content (this is explained in the first post). Yes category protection will still work with More tag protection but on the post itself it will be fully protected (the teaser can only be viewed in the blog page). Since WordPress do not support more tag for pages we have made the section protection of eMember more robust so it can used nicely to create teaser sections.

    Posted 11 months ago #
  9. woodpecker34
    Member

    Do I understand it correctly that I should put my premium content in a category different than the free content and then allow access to the premium content by membership level?

    I want to 'drip' content out on a monthly basis so would I:
    1. Create a free category for first time, tire kicker visitors.
    2. Create a level 1 category for the first month of membership
    3. Create a level 2 category for the second month of membership and on and on?

    Then, via the automatic upgrade assign the level to the new category each month?

    Posted 10 months ago #
  10. amin007
    Key Master

    Yep you are correct. Categorizing your content per level is a really good idea. This way you can protect the content that belongs to a category for a particular membership level in one go.

    Posted 10 months ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ Forum is proudly powered by bbPress

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin