Tagged: buddypress, external links, feature, links, Preview, question
- Milan Latinovic on September 18, 2019 at 5:25 pm #25351
I have a question related to Activity stream and Link previews.
We are using MediaPress with BuddyPress. When we make a post with link only we get a nice preview of a link. On the other hand, when we post a link with some textual content, preview of the link does not appear. Please examine the example below.
1st post, top one – example with link and text afterwards (no preview available)
2nd post, middle one – example with link and text before (no preview available)
3rd post, bottom one – example with link only (preview available)
I would like to have the behavior where in all three cases there is a preview available, followed by a text. Is there a way to accomplish this easily, with some hook or filter?
- Brajesh Singh on September 18, 2019 at 6:48 pm #25359
Thank you for the question.
In all three cases, are you posting the link using MediaPress? or are you putting link inside the content?
Please let me know and I will assist.
- Milan Latinovic on September 18, 2019 at 9:40 pm #25361
In all of the cases I was putting a link inside of content.
Hopefully, this is something that can be accomplished?
- Brajesh Singh on September 18, 2019 at 9:49 pm #25362
Try entering the link on a new line.
The oembed should parse it correctly. It the content and link are on same line, It does not get parsed properly.
Please give it a short and let me know if that works for you or not?
- Milan Latinovic on September 19, 2019 at 6:30 am #25367
Thanks, this resolved it.
- Milan Latinovic on September 19, 2019 at 6:45 am #25368
I have a quick followup question.
Seems like that we are getting previews only for links which are from our own web site (our domain). If I try to make a preview for any other external link it is not working. Is there some kind of settings needed to preview external links or how can we make this functionality work?
- Brajesh Singh on September 19, 2019 at 6:51 pm #25380
The previews are available for any oembed supporting site.
For example, if you add a video from youtube or vimeo, they should show the preview.
Hope that clarifies.
PS:- all WordPress sites act as oembed provider, that’s why internal links are showing preview.
- Milan Latinovic on September 21, 2019 at 10:50 am #25403
Yes, this makes sense, thanks.
I will close this ticket now and if I notice possible issues with links from oembed providers I would report them in separated ticket.
- Brajesh Singh on September 22, 2019 at 11:57 pm #25418
Thank you Milan.
The topic ‘ [Resolved] BuddyPress Activity post and preview of links’ is closed to new replies.