Simple Membership Plugin › Forums › Simple Membership Plugin › Twitter card is not displayed for not logged in user
- This topic has 9 replies, 2 voices, and was last updated 5 years, 1 month ago by
msato.
-
AuthorPosts
-
October 19, 2021 at 2:25 am #23149
msato
ParticipantHi,
Can you let me know how Twitter card is displayed on not logged in?1. create new post and new “Twitter” block on block editor.
2. select “Yes, Protect this content”
3. access the post, then shows “https://twitter.com/XXXXX/status/XXXXXXXX” on not logged in.I hope it shows the Twitter card on not loggd in.
Let me know how you do.Thank you.
October 21, 2021 at 3:00 am #23154mbrsolution
ModeratorHi, please provide more information so that I can understand exactly what you are trying to achieve.
Thank you.
October 21, 2021 at 9:54 am #23155msato
Participantthanks for your reply,
1. select Posts -> “Add New” on Admin screen.
2. add 3 blocks
-(1) Twitter embed block, input twitter url for example “https://twitter.com/hd_puppy/status/1451088409292951556”
-(2) More block,
-(3) Paragraph block, input someting.
3. protect the post, “Yes, Protect this content” and select all of the memberships check-box.
4. Publish.
5. view post.
-> if logged in, it showsthe Twitter card.
-> if not logged in, it shows just plain text url not a twitter card.Paragraphs above the more should look the same whether you are logged in or not, I think.
Thank you.
October 22, 2021 at 12:09 am #23159mbrsolution
ModeratorHi,
For testing purposes, can you test one of WordPress default theme like Twenty Twenty.
Let me know what happens.
Thank you.
October 22, 2021 at 12:23 am #23163msato
ParticipantHi,
I have tried it with Twenty Twenty-One, but the display is similar.
if not logged in, it shows plain text like below. not shows twitter card.
—
https://twitter.com/hd_puppy/statuses/1451088409292951556
You need to login to view the rest of the content. Please Login. Not a Member? Join Us
—Thank you.
October 22, 2021 at 12:56 am #23164msato
Participantthe post view image :
https://si.nocde.net/img/20211022/limg_dym7t8wVGr60m8BaSt9i095341.webpOctober 22, 2021 at 3:45 am #23166mbrsolution
ModeratorHi, I am curious to know if you are using any Divi type plugins by any chance?
Regards.
October 22, 2021 at 7:31 am #23168msato
ParticipantHi,
I don’t know what a “Divi type plugin” is…
but I installed just the “Simple WordPress Membership” plugin.this is the testing environment Plugins screen.
https://si.nocde.net/img/20211022/limg_dym7t8wVGr60m8BaSt9i162948.webpOctober 22, 2021 at 10:23 pm #23170mbrsolution
ModeratorHi, I think I know what is happening. If the Twitter card is added within the protected content then it will not show unless the member is logged in.
Regards.
October 26, 2021 at 3:35 am #23184msato
ParticipantHi,
I understand the Twitter card will not show on the protected post,
but I found that I could do what I wanted with Partial Protection addon.Here is the procedure.
open block editor and add 4 blocks.
-(1) Twitter embed block, input twitter url for example “https://twitter.com/hd_puppy/status/1451088409292951556”
-(2) Short Code block, input “[swpm_protected AND_OTHER_PROPERTIES]”
-(3) Paragraph block, input someting.
-(4) Short Code block, input “[/swpm_protected]”Thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.