Archived topic
Inline post from specific url [shortcode]
5 replies · Started by Nenad on February 12, 2020
Hey guys. I've been using this theme for my latest site and it is great.
But, my client got a super cool idea, which I can't solve easy. Hopefully you can help me somehow. 🙂
So, the end result is: [shortcode url="https://url-from-the-site.com/SPECIFIC-POST"]
which fetches a small featured image and post title of a SINGLE post specified by URL.
Any tips on how to solve this are appreciated.
Note: I want to avoid using any plugin.
Thanks.
Hi there,
The closest solution I can think of is to use WP Show Posts and Post ID to create the shortcode:
https://en-ca.wordpress.org/plugins/wp-show-posts/
https://docs.wpshowposts.com/article/more-settings-overview/#post-id
You'd need a custom solution without a plugin unfortunately.
Hope this helps :)
Hey, Leo,
Thanks for the fast answer.
Is it maybe easier if I'd do [post id="XYZ"] where XYZ is ID of an actual post?
I really wanna avoid any additional plugins.
WP Show Posts doesn't work like that unfortunately.
You'd need to create a custom shortcode for the functionality you are looking for without a plugin which is outside the scope of this support.
You could try a site like this and see if anyone is able to help:
https://wordpress.stackexchange.com/
If not then you may need to hire a developer:
https://codeable.io/
Old issue, resolved meanwhile with dev and custom code. Thanks!
No problem :)