Skip to content

Question: How to add RSS item sub-element from page-meta-data? #6

@new-on-github

Description

@new-on-github

I use Pico-RssMaker and like it.

it seems possible to add a image to a rss-item as sub-element:
https://www.rssboard.org/rss-specification#ltenclosuregtSubelementOfLtitemgt
I want to add a image form the meta-tag "image" from my pico-md-yaml-header.

How to do this in php. I tried some versions like:

$rss .= '<enclosure>'; $rss .= $page['image']; $rss .= '</enclosure>';

But this is not working.

My question now is: How to access the page-meta-data via php?

It would be really nice if you could help me with this question.

Btw thanks a lot for the Pico-RssMaker!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions