alicolville / meal-tracker

Extend your site by allowing your users to track their meals and calorie intake. Calorie targets for the day can be set by admins, the users or automatically pulled from Yeken's Weight Tracker
https://mealtracker.yeken.uk/
1 stars 0 forks source link

WP Recipe Maker #176

Open sbservices opened 11 months ago

sbservices commented 11 months ago

I can't find anything in the documentation for connecting the WP Recipe Maker plugin

image

Just evaluating the WP Recipe Maker and trying to understand how end users would search for a recipe added in to this. I've added 2 recipes but they don't seem to appear in a search. Have I got the settings right?

alicolville commented 11 months ago

I'm not an expert on WP Recipe maker, and the integration is a simple one, but it should allow you to search their post type for the given string.

Might be worth tracing the code for hints... e.g. have you entered a calorie value, is it published etc:

https://github.com/alicolville/meal-tracker/blob/master/core/external-sources/wp-recipe-maker.php

sbservices commented 11 months ago

I don't know how to read code. But all relevant boxes are completed on a recipe that are available:-

image

Carbs, Protein and Fats boxes are not enabled as we only have the Free version to test the WP Recipe Maker plugin. So if its needing those to be enabled before it displays a recipe, perhaps do we need the Premium version of WP recipe maker?

image

But also I'm not getting the Search button to be able to search the data source. It is just giving me the inline search field, which I think looks to the MT's own admin meal collections and the logged in users own meals that they've added manually.

Screenshot of search box with no 'search' button, even with 'external sources' enabled in settings.

image

I'm not sure if that's the problem? I am thinking that for it to search the WP Recipe Maker for meals, that the Search button should be there? I only get the search button when I either enter FatSecret Box info, or External API data.