=== Simple Subtitle ===
Contributors: janiko
Tags: subtitle, post, page, title
Requires at least: 5.2
Requires PHP: 7.2
Tested up to: 7.1
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an optional subtitle below the title of individual posts and pages.

== Description ==

= English =

Simple Subtitle adds a subtitle field to the post and page editor and displays its value below the title on singular posts and pages. It uses the existing `_simple_subtitle` post meta key, so subtitles saved with version 1.0 remain available.

Version 1.1.0 uses the `the_title` filter to add a styled `span`, rather than a nested heading, on the queried post in the main loop. A minimal stylesheet is included and can be overridden in your theme.

Note: placement is theme-dependent. This automatic approach works with themes rendering the main title in the main loop. It may not apply to themes rendering the title outside that context.

= Français =

Simple Subtitle ajoute un champ de sous-titre dans l'éditeur des articles et des pages, puis affiche sa valeur sous le titre lors de l'affichage individuel. Les sous-titres enregistrés avec la version 1.0 sont conservés grâce à la métadonnée `_simple_subtitle`.

La version 1.1.0 utilise le filtre `the_title` et un élément `span` mis en forme, plutôt qu’un titre HTML imbriqué. Un style minimal peut être surchargé dans le thème.

Remarque : le résultat dépend du thème. L’affichage automatique nécessite que le titre principal soit traité dans la boucle principale WordPress.

== Installation ==

1. Upload the `simple-subtitle` folder to `/wp-content/plugins/` or install the ZIP from the WordPress plugins screen.
2. Activate Simple Subtitle.
3. Edit a post or page and fill in the Subtitle field.

Français : installez et activez l'extension, puis remplissez le champ « Subtitle » dans l'éditeur d'un article ou d'une page.

== Frequently Asked Questions ==

= Does it change my stored content? / Modifie-t-il le contenu enregistré ? =

No. It stores a separate post meta field and only adds the subtitle during front-end rendering.

Non. Le sous-titre est stocké dans une métadonnée distincte et ajouté seulement lors de l'affichage.

= Is it compatible with version 1.0? / Compatible avec la version 1.0 ? =

Yes, existing `_simple_subtitle` values are reused. / Oui, les valeurs `_simple_subtitle` existantes sont réutilisées.

== Changelog ==

= 1.1.0 =
* Display subtitles below the main title using a styled span, avoiding nested HTML headings.
* Preserve existing subtitles and add defensive checks when saving.
* Add a minimal stylesheet and bilingual documentation.
* Français : sous-titre sous le titre principal, vérifications renforcées, CSS minimal et documentation bilingue.

= 1.0 =
* Initial version. / Première version.
