[Resolved] Inline post from specific url [shortcode]

Home Forums Support [Resolved] Inline post from specific url [shortcode]

Home Forums Support Inline post from specific url [shortcode]

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1163619
    Nenad

    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”%5D

    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.

    #1163623
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1163628
    Nenad

    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.

    #1163654
    Leo
    Staff
    Customer Support

    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/

    #1928163
    Nenad

    Old issue, resolved meanwhile with dev and custom code. Thanks!

    #1928302
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.