WordPress.org

Forums

WP Ultimate Recipe
[resolved] json support for ingredients (11 posts)

  1. telltale
    Member
    Posted 2 years ago #

    Is there any json support for ingredients, such as /json/?ingredient=lemon

    https://wordpress.org/plugins/wp-ultimate-recipe/

  2. BrechtVds
    Member
    Plugin Author

    Posted 2 years ago #

    Hi there,

    At the moment there is no API available, but I like the idea. Is there anything specific you'd be using this for?
    I'll add it to the todo list, but it would be great if you could give us some requirements at support@wpultimaterecipe.com so we can work something out.

    Kind regards,
    Brecht

  3. telltale
    Member
    Posted 2 years ago #

    Thanks for quick response. We want to show related recipes in our product web page. We need the json response of the recipes that the ingredient is used, so we should be able to send an ajax request to show the details of the recipes.

    http get /json?ingredient=lemon

    will return (of course the json should include all data of the recipe)

    { "recipes": {
    "recipe": {
    "title" : "Recipe Title",
    "imageUrl" : "Recipe Main Image url"
    }
    }
    }

    I will also wonder when we will use the feature. It is a "must" for our project.

    Thanks.

  4. telltale
    Member
    Posted 2 years ago #

    Is there any progress on this feature?

  5. BrechtVds
    Member
    Plugin Author

    Posted 2 years ago #

    Hi again,

    We're currently working hard on getting WP Ultimate Recipe 2.0 out of the door, which is going to take another 2-3 weeks, probably (we're beta testing with a couple of customers at the moment). Once that is finished I can get back to other features, so I'm afraid I won't be able to give you a deadline just yet.

    Kind regards,
    Brecht

  6. just10mninutes
    Member
    Posted 1 year ago #

    Hi BrechtVds

    I am unable to get the contents written in WP Ultimate recipe plugin in my Json output of that particular post. IS there something I need to do on Wp Ultimate recipe plugin to get the content on Json output?

  7. BrechtVds
    Member
    Plugin Author

    Posted 1 year ago #

    How are you getting that json output?
    Our fields are stored as metadata of the post.

  8. just10mninutes
    Member
    Posted 1 year ago #

    I am trying to fetch using normal json query on the URL

    http://mydomain.com/wp-json/posts/post-id

    isn't this supported to bring the contents of wp ultimate recipe?

  9. BrechtVds
    Member
    Plugin Author

    Posted 1 year ago #

    So you're using this plugin?
    https://wordpress.org/plugins/json-rest-api/

    Apparently it's possible to get the metadata like this: /wp-json/posts/<id>/meta

  10. just10mninutes
    Member
    Posted 1 year ago #

    Yes I am using that Plugin, but when I try this I get this message from my Postman add on which I use to check th Json results.\

    I am new to this so sorry if I am missing something basic here

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    [
        {
            "code": "json_cannot_edit",
            "message": "Sorry, you cannot edit this post"
        }
    ]
  11. BrechtVds
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not familiar with that plugin myself. Their support can probably help you out better.
    This topic seems to be related: https://wordpress.org/support/topic/custom-meta-data-2?replies=6

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Ultimate Recipe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags