Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › How to show teaser content in post preview in home page
Tagged: protection, wp membership
- This topic has 16 replies, 4 voices, and was last updated 8 years, 9 months ago by admin.
-
AuthorPosts
-
February 27, 2015 at 10:24 pm #12287Al3xMember
Hi when im in the site home page, i cannot see the teaser content that is supposed to be public, i see the message saying “Log in in your account to see the content, etc” what can i do to show this teaser content in the preview of recent posts in home page?
February 27, 2015 at 10:42 pm #68825wzpModeratorInstead of protecting the entire post, use Partial Content Protection, and begin protecting the post after the first paragraph:
https://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
Or, you can keep full content protection for each post, and instead create a custom excerpt for each post. But that means double typing or copy/pasting of the first few words from each post.
or Use the more tag protection feature:
February 28, 2015 at 7:21 pm #68826Al3xMemberHi thanks for the response, i used the teaser content feature, everything after the “more” tag is hidden, but if you go to the home page, you see the recent posts, but not the introductory text (teaser) only the message saying “please log in your account…”, here are some screenshots so you can have a better idea of what im saying
In home page, the teaser is not shown
[http://awesomescreenshot.com/03d4igfabe]
In post page, the teaser is shown
[http://awesomescreenshot.com/0c44igfna0]
February 28, 2015 at 11:55 pm #68827adminKeymasterHave you also applied category protection to those posts also?
Lets make sure your theme is not outputting the post content in a weird way which is making this not work. Do the following theme test please:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
January 20, 2016 at 2:02 am #68828acb323Memberhello, I’m having this exact issue and I can’t find a fix, please help
January 20, 2016 at 1:08 pm #68829wzpModeratorPlease provide a link to your site, with a descriptive narrative of what the problem is, and what we are supposed to see (or not see).
January 20, 2016 at 2:01 pm #68830acb323MemberHere’s the link to the home page (you’ll have to scroll down to where it says “Latest Tax Tips”): [https://taxley.com]
Here the link to the blog list page: [https://taxley.com/blog/]
The goal is for all of the posts to be available to free members upon login, however every post will have teaser content.
The post entitled “Should I Purchase More Business Equipment to Pay Less Taxes?” is currently partially protected when you click on the article, however when looking at the blog preview, per the links above you’ll see there’s no teaser content before the “Read More” – it says you have to log in.
The next article “4 Steps to Filing Past Due Returns & Fixing Your Tax Problems” is not protected and you can see the preview info before the “Read More” – the protected post should look like this in the preview.
Also, I partially protected a page: [https://taxley.com/blog/ask-taxley/] but it’s not showing any content before the “more tag”
January 20, 2016 at 11:59 pm #68831adminKeymasterFirst, More tag is a WordPress blog post only feature. WordPress does not support more tag in pages. So using more tag in pages won’t have any effect.
The best option is to use the following section protection feature so it works everywhere:
https://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
Are you trying to use more tag protection on your pages?
Next, your theme is not showing the actual blog post content on the “blog” listing view. It is showing an excerpt I think. More tag protection doesn’t work on excerpt. The more tag protection will work when the theme is showing the standard blog post content in the blog listing page.
Does your theme have an option to show the standard post content in the blog listing page (instead of the excerpt)?
January 21, 2016 at 2:51 am #68832acb323MemberHello,
Thanks, I used the short code per your link to protect the page I was trying to protect – works just fine thanks!
In my “blog” listing view and per the theme’s “recent post” short code, embedded on the home page, I want the blog excerpt to show a portion of the teaser content although a portion of the blog is hidden.
I tried the “more tag” in the post and the short code provided in the link above, but it still hides the blog “excerpt”… is there a way to prevent this as this is a crucially necessary fix…
Thanks!!
January 24, 2016 at 7:03 pm #68833acb323MemberAs a total non-techie, I’ve found the following solution to the teaser content not showing up in the blog list…
As my goal was to benefit from the functionality of the “more tag” (where it prompts you to login or join) without losing teaser content – I combined the [ememer_protected] short code with the custom message of the “more tag” as follows:
[emember_protected custom_msg=’Please Login to view this content. (Not a member? Join Today)’]
PROTECTED CONTENT GOES HERE
[/emember_protected]
When doing this you CANNOT select the “protect this content” in the content managment area – you won’t need to since you have the short code, if you need to customize the member access just add the member level to the short code…
I used the following link, as provided by support above, to help me figure this out: https://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
**Again, I’m not website/coding savvy so if there’s a better way please share…
Thanks!!
January 25, 2016 at 12:40 am #68834adminKeymasterUsing section/partial protection is the way to go when you want to do teaser content. So what you have done is perfectly okay.
February 7, 2016 at 10:09 pm #68835acb323MemberThanks! But how do you add the “floating” login form – I’m using ‘a href=”void(0);’ is this correct – I had to remove the <…> info so you can see the href… I’d like users to be able to login from the article they are reading and stay on the same page once they login.
Also, when I use the following short code: “emember_protected custom_msg=’Please ‘Login’ to continue reading. (Not a member? ‘Join Today’ – it’s FREE)” – with the brackets of course, I had to remove them here for you to see the code.
The custom text doesn’t show up… see [https://taxley.com/8-must-have-tax-tips-for-police-officers/]
February 9, 2016 at 12:33 am #68836adminKeymasterIf you want to do your own HTML for the overlay login form then do the following:
1) Enable that option.
2) Then go to a page where eMember creates the login link.
3) View the HTML source so you can copy the HTML code for the link then use it in your custom message.
February 10, 2016 at 2:19 am #68837acb323MemberDoing that creates errors and it re-directs to the member home page opposed to allowing the member to stay on the same page with the inline login enabled…
Also the code is associated with an “id” number, which is different for each page that eMember naturally has the inline login on…
The code to make the inline login is (per the page’s source code) – I spaced it out so you can see it:
[emember_protected custom_msg=
‘Please <a id=”1455068579.55″ class=”
emember_fancy_login_link activeLink” href=
“javascript:void(0);”>
Can you all make an emember protected short code option that already has the inline login code included (so it can be activated from the settings area), so all I we have to do is make changes to the custom text if necessary?
February 10, 2016 at 10:48 pm #68838adminKeymasterDid you want the inline login option or the overlay option? I thought you wanted the overlay. You can’t mix them both.
The overlay login is an optional feature (It has to use javascript which has limitation in terms of what it can do).
-
AuthorPosts
- You must be logged in to reply to this topic.