Hi,
I created a recipe costing plugin that simply adds up the cost of ingredients in a recipe.
It has 2 custom post types, Recipes and Ingredients. It uses the Posts to Posts plugin to make the connection and store ingredient qty for each recipe.
I then created a theme to display this content and in the single-recipe.php file i have performed all the calculations on the recipe and ingredient data.
So i have two folders, a plugin and a theme folder. I want to be able to display all my recipe and cost data just with the plugin and no theme, because it makes more sense to have just 1 file to install.
Im confused about custom post type templates, im looking at WooCommerce products as an example and 'products' post types do not have the option to change the template, this makes sense because a product template needs to do some special querys and calculations to display the data.
Im new to all this and i think what im asking is, how can i create a single-recipe.php file in my Plugin folder and have WordPress know that is the file i want to use as my default theme/template file?
I have read the codex on CPTs and Templates but i haven't seen anything that talks about this grey area, any help/links would be appreciated.