=== LWN Recipe ===

Contributors: Nawras92
Tags: recipes, recipe schema, seo, food blog, recipe cards
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.2.0
License: GPLv2
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

Publish beautiful recipes that Google actually shows in search - free, fast, and no page builder required.

== Description ==

LWN Recipe is a free, lightweight recipe plugin built for one job: getting your recipes to look great on your site and rank well in Google.

**Get found in search.** Every recipe automatically outputs Recipe schema.org / JSON-LD markup - the structured data Google uses to show rich results like star ratings, cook time, and photos directly in search. No separate SEO plugin, no manual code.

**Pick a design, not a page builder.** Choose from 5 ready-made recipe page layouts - Card, Editorial, Recipe Card, Split Screen, and Timeline - right from your settings page. Every layout is fully responsive and print-friendly, and you can switch anytime without touching a single template file.

**Works the way you already work.** Enter recipes through the classic metabox fields or the block editor's Recipe Meta block - your choice. Recipe pages render correctly on both classic themes and modern block themes (like Twenty Twenty-Five), including your site's real header and navigation.

**No bloat, no upsells.** LWN Recipe does one thing well instead of trying to be an all-in-one page builder. It's free, and it stays out of your way.

= Key features =

* Automatic Recipe schema.org / JSON-LD markup for Google rich results (ratings, cook time, photo)
* 5 selectable, fully responsive recipe page designs - switch anytime from Settings
* Customizable badge text on recipe pages (or hide it entirely)
* Recipe custom post type: ingredients, steps, prep/cook/total time, servings, meal type, vegan flag
* Recipe taxonomy for organizing recipes into types
* Works with both the classic editor and the block editor
* Works with both classic themes and block themes (renders your theme's real header/footer)
* Recipe blocks and block patterns for the block editor
* Recipe widgets and sidebar for classic themes
* Clean, dependency-light codebase - no external services required

== Installation ==

1. Log in to your WordPress dashboard, navigate to the Plugins menu, and click "Add New."
2. Search for "LWN Recipe" and click "Install Now."
3. Activate the plugin.
4. Go to Recipes → Settings to pick your recipe page design.
5. Go to Recipes → Add New Recipe to publish your first recipe.

== Frequently Asked Questions ==

= How do I add a recipe? =
Go to Recipes → Add New Recipe in your WordPress admin sidebar. Fill in the title, description, ingredients, steps, and recipe details (prep/cook time, servings, meal type, vegan), then publish.

= How do I change how my recipe pages look? =
Go to Recipes → Settings and pick a design from the "Recipe Page Style" dropdown. There are 5 to choose from, and you can switch anytime - all your existing recipes update automatically.

= Will my recipes show up in Google search results with stars and photos? =
LWN Recipe automatically outputs the Recipe schema.org markup Google looks for. Whether Google actually displays rich results depends on Google's own indexing and quality guidelines, but the structured data is generated correctly out of the box.

= Where do I see all my recipes on the frontend? =
Your recipe archive is available at yourdomain.com/recipe automatically.

= Does this work with my theme? =
Yes. LWN Recipe works with both classic PHP-based themes and modern block themes (Full Site Editing), and renders your theme's actual header and footer either way.

= Can I use the block editor instead of the classic fields? =
Yes. The "Recipe Meta" block gives you the same fields (prep/cook time, servings, vegan, meal) with block editor-native controls, including color customization. Use either the classic fields or the block - not both on the same recipe, to avoid conflicting edits.

== Screenshots ==

1. Card style - the default recipe page: photo hero, meta bar, and tickable ingredients beside the method.
2. Editorial style - serif masthead, ruled stat table, and a sticky ingredient rail.
3. Recipe Card style - a printable index card in monospace, with "You need" and "You do" columns.
4. Split Screen style - photo and ingredients stay pinned while the method scrolls.
5. Timeline style - steps run down a spine with a "Have ready" ingredient row above.
6. The recipe archive - a card grid of every published recipe.
7. Settings - pick any of the five page styles from a dropdown and set your own badge text.
8. Editing a recipe - ingredients, steps, times, servings, meal, and vegan flag in one screen.
9. Recipes get their own menu and list in wp-admin.
10. The Recipe Meta block - set times, servings, meal, and colours right in the block editor.
11. Blocks and patterns for recipes, available anywhere in the Site Editor.

== Changelog ==

= 2.2.0 =
* Add 5 selectable recipe page designs (Card, Editorial, Recipe Card, Split Screen, Timeline) with a new style picker in Recipes → Settings.
* Add a customizable badge text setting (rename or hide the "Free" badge shown on recipe pages).
* Render the theme's real header/footer on block themes (previously showed no site header/nav at all).
* Fix the classic metabox and Recipe Meta block writing to different, conflicting meta keys.
* Fix the settings page link and stylesheet after moving it under the Recipes menu.
* Resolve all WordPress.org Plugin Check errors and warnings (output escaping, input sanitization, direct file access protection, translation issues).

= 2.1.0 =
* Add automatic Recipe schema.org / JSON-LD markup for Google rich results.
* Fix the recipe editing screen, custom templates, and widgets not loading.
* Fix recipe data not being consistent between the classic editor and blocks.
* Various security and translation fixes.

= 2.0.0 =
* Add Block Theme Support.

= 1.0.0 =
* First version of the plugin.

== Upgrade Notice ==

= 2.2.0 =
Adds 5 new recipe page designs and full block-theme support (real header/footer). Updating is recommended.

= 2.1.0 =
This release fixes several bugs that could prevent recipes from displaying or saving correctly. Updating is recommended.
