I'm working to build a food blog and I'd like to add the feature that permits to logged users to save in a specific area all favorite recipes. I created two specific post types (likes and recipes) and a custom field that makes the association (favorite_recipe_id) and control if the user has already added that specific recipe in his list.
Now I'd like to create the area to show to the user all the recipes added in the list: I'm a little bit confused 😕, anyone should help me to find a right way to follow?
Thanks a lot 👍
WP_Query meta_query
of sorts. To get more precise help it is best to be more specific, optimally with some code.wp_posts
JOINwp_postmeta
WHEREpost_type
= 'like' ANDmeta_value
= 'favorite_recipe_id' ANDpost_author
= 1 (to get all my likes (ADMIN); ...but I'm sure that isn't the right approach, thanks for your help @Nicolai