- This topic has 15 replies, 3 voices, and was last updated 6 months, 2 weeks ago by
Tom.
-
AuthorPosts
-
July 4, 2020 at 5:43 am #1351513
Jon
Hey guys I don’t know what to call it, or what it is called, so I don’t know if this has already been addressed or not.
This is what I am wanting to know, and it is possible, because I have seen wordpress websites do it. One posted as an example below.
When you copy and paste a twitter link in to the editor, it fetches a clickable preview of the tweet. Same if you paste a link of a youtube video.
How can a link to a regular url be pasted in and do the same thing and fetch a clickable preview of a website?
For instance. If you look at this post at this website, https://hnewswire.com/there-is-no-actual-law-or-justice-in-the-b-e-a-s-t-system-birth-pains/ You will see several previews of other posts that you click on the headline or url and it opens it.
Is there a setting I am overlooking?
BTW I don’t use the new Gutenberg editor, I use the classic editor with TinyMCE Advanced.
Hope I made sense and you know what I am needing to know.
Jon
July 4, 2020 at 8:50 am #1351811David
StaffCustomer SupportHi there,
maybe this article will help?
https://www.wpbeginner.com/plugins/an-automated-way-of-taking-website-screenshot-in-wordpress/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 6, 2020 at 5:29 am #1353741Jon
I tried that plugin. It worked, but fetched the whole website instead of a preview with the post headline.
July 6, 2020 at 6:19 am #1353788David
StaffCustomer SupportIf you’re using the Block Editor then try using an Embed block.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 6, 2020 at 7:31 am #1353881Jon
David I tried that, and it said it could not embed the url. I don’t use that Newfangled stuff. To confusing for this old dog! I am a classic guy!
July 6, 2020 at 7:38 am #1353887Jon
Here is what I just realized. If you paste into the editor a url from the same domain, it will fetch a preview like I am talking about. Paste a url from another domain and it will only show the url text.
Trying to see if it does it here
https://generatepress.com/forums/topic/website-preview-like-twitter/#post-1351513
Nope, just turns it into a clickable link
July 6, 2020 at 3:14 pm #1354486Tom
Lead DeveloperLead DeveloperWe’ve turned that feature off in the forums.
I believe WordPress will try to fetch a preview, but it can fail (http to https etc..).
This topic might be useful: https://wordpress.org/support/topic/embeds-not-working-on-all-websites/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 6, 2020 at 3:26 pm #1354497Jon
Well thanks for the suggestions. Maybe one day WordPress will add that feature in.
July 8, 2020 at 3:48 pm #1357131Jon
Hey guys, I gave up and closed this however I found something and would like input, and perhaps maybe you could add a feature that will automatically do this.
I have permission from a website to publish their posts. I did one just a bit ago and figured I would have to put a link as I figured the url they posted would NOT show up on my website…., but it did. And exactly as I have been wanting in the above posts.
Take a look at the this post on my website https://www.online-ministries.org/current-biblical-locust-plague-july-8-2020/ and scroll to the bottom. You will see the box with the content I am referring to..
Here is the code.
<figure class=”wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-strange-sounds”>
<iframe class=”wp-embedded-content” title=”“Biblical 15-square-kilometer Locust Swarm Is Heading Towards Brazil and Uruguay After Invading Northeast Argentina” — Strange Sounds” src=”https://strangesounds.org/2020/06/locust-plague-brazil-uruguay-argentina-video.html/embed#?secret=8iROma4aU4″ width=”600″ height=”628″ frameborder=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no” sandbox=”allow-scripts” data-secret=”8iROma4aU4″ data-mce-fragment=”1″></iframe></figure>
Now, HOW do I get wordpress to add that automatically when I paste a stand alone url from another website. It does it automatically if the url is from a post within the domain.
Yea, I could do it manually, but that takes to much time. Can you guys add a feature to do that, a CSS or something else that could be integrated in to do it automatically?
If so, simple instructions for a simpleton like me! LOL
July 9, 2020 at 5:37 am #1357803David
StaffCustomer SupportWhich version of WordPress are you using ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/July 9, 2020 at 5:51 am #1357817Jon
Current version 5.4.2
July 9, 2020 at 1:57 pm #1358399Tom
Lead DeveloperLead DeveloperHi there,
It should work by default as long as your server is able to communicate with the server you’re getting the content from.
For example, I pasted a link from our documentation site (docs.generatepress.com) on my local site (generatepress.local) and here’s what happened: https://www.screencast.com/t/jWMW9QShSm
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 9, 2020 at 2:21 pm #1358417Jon
Tom, when you say “as long as your server is able to communicate with the server you’re getting the content from”
How does one know if that is happening? Is there a setting for that?
July 10, 2020 at 10:04 am #1359363Tom
Lead DeveloperLead DeveloperIt should happen automatically. I’m not 100% sure of the inner workings of that feature, but I believe it uses the REST API. If it’s not working, it likely means that connection isn’t being made.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 10, 2020 at 10:55 am #1359420Jon
Thanks Tom.
I did some experimenting and some sites did indeed auto post. All of my websites on my VPS will not communicate with each other. About 1/4 of those I tried did. Thanks for your help. The theme and plugin extra is great! -
AuthorPosts
- You must be logged in to reply to this topic.