=== Custom Messages In RSS Feed ===
Contributors: keralpatel
Donate link: https://www.keralpatel.com
Tags: rss, feed, custom message, attribution, copyright
Requires at least: 4.6
Tested up to: 7.0
Requires PHP: 7.0
Stable tag: 1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Insert a custom text or HTML message at the start or end of every item in your RSS feed.

== Description ==

Custom Messages In RSS Feed lets you append or prepend any text or HTML to every item in your blog's RSS feed.

It is handy when your content is syndicated without proper credit: add a copyright notice, a "the post first appeared on..." source link, or a small logo or icon that links back to your site so the attribution travels with your content.

Everything is configured from a single settings page at **Settings &rarr; Message In RSS Feed**.

**Features**

* Add a custom message to the start or the end of each feed item.
* Plain text or HTML — insert links, images, or a blog logo.
* HTML is sanitized automatically, so unsafe tags and scripts can never reach your feed.
* Lightweight: no database tables, no front-end assets, just two small options.

== Installation ==

1. Upload the `custom-messages-in-rss-feed` folder to your `/wp-content/plugins/` directory, or install it directly from the WordPress plugin directory.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Settings &rarr; Message In RSS Feed** to set your message and choose where it appears.

== Usage ==

Open **Settings &rarr; Message In RSS Feed**, type the text or HTML you want to add, choose whether it appears at the start or the end of each feed item, and save. The message is then added to every item in your RSS feed.

== Frequently Asked Questions ==

= How is this useful? =

If people syndicate your RSS feed without giving credit, you can embed your copyright notice and an attribution link in every item so the credit goes wherever your content goes.

= Can I use HTML? =

Yes. You can add links, a blog logo, or basic formatting. For safety, scripts and other unsafe markup are stripped automatically when you save and again when the feed is generated.

= Where does the message appear? =

It is added to the content of each item in your RSS feed (both full-content and excerpt feeds), either before or after the post content depending on the position you choose.

== Screenshots ==

1. The settings page under Settings &rarr; Message In RSS Feed.

== Changelog ==

= 1.2 =
* Fixed: the custom message now saves and redisplays correctly. The settings field previously used the wrong escaping function, which could mangle messages that contained quotes or HTML.
* Security: the saved message is sanitized with `wp_kses_post()` on save and on output; the position value is validated against a fixed list.
* Changed: the admin menu now registers with a clean page slug and the standard `manage_options` capability instead of exposing the plugin file path and a role name.
* Changed: removed the duplicate plugin header from the secondary file so the plugin no longer appears twice on the Plugins screen.
* New: the message field is now a multi-line editor, making it easy to paste and edit longer HTML snippets.
* Improved: internationalized strings and general code clean-up.
* Compatibility: tested up to WordPress 7.0.

= 1.1 =
* Added the option to place the message at the start or the end of the feed item.

= 1.0 =
* Initial release.

== Upgrade Notice ==

= 1.2 =
Recommended update: fixes a settings-display bug, hardens HTML sanitization, adds a multi-line editor, and confirms compatibility with the latest WordPress.
