• Resolved mg33

    (@mg33)


    Hello,

    I’ve got the plugin and the Rest API plugin running, and I’m trying to embed posts from the same site onto a custom page. It’s running successfully for external sites, and I’ve customized the display of featured image and title from those sites. Now, I want to pull three latest blog posts from the same site so they match the format of the external site feeds.

    I tried using the shortcode but it’s not working. Is there any limitation to using REST API to embed posts from the same site?

    Thanks – Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    The process is the same when embedding posts from the same site. Could you post the shortcode you used here, so I can run some tests?

    Thread Starter mg33

    (@mg33)

    Thanks Jeremy. Your help a few weeks ago was very helpful, although I did back out of trying to fully integrate three feeds into one with the plugin.

    My shortcode for posting posts from the same site is as follows:
    [jeherve_post_embed url="https://www.mg33.com" wpapi="true" type="post" include_title"true" number="3" include_excerpt="false"]

    There are only two test blog posts on mg33.com at the moment. If you check out the home page you’ll see that there are two other Rest API feeds pulling into the page, which has turned out to be so much faster than loading RSS feeds like I used to. So, thanks for the plugin!

    Michael

    Thread Starter mg33

    (@mg33)

    A couple things to mention:

    When I link to https://www.mg33.com/wp-json/wp/v2/posts I’m able to see the post data as expected in the browser. I then get the “Error, No Blog Data Returned” message when using this url in the shortcode.

    If I simply use the url “https://www.mg33.com” in the shortcode, I don’t get any message.

    I do have Jetpack running, and noticed the JSON API was active. I turned it off but that didn’t change anything. I do have the REST API plugin, and your embed plugin running.

    Hope that helps. Thanks again – Michael

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you try to add Featured Images to those posts, and let me know if it helps?

    When I link to https://www.mg33.com/wp-json/wp/v2/posts I’m able to see the post data as expected in the browser. I then get the “Error, No Blog Data Returned” message when using this url in the shortcode.

    That will never work. You won’t be able to use my plugin with a URL pointing to a specific post, a specific page on your site, or a link to a REST API page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to use this plugin to embed posts from the same site?’ is closed to new replies.