# Meta Tags Plugin

**URL:** <https://forum.getkirby.com/t/meta-tags-plugin/6802>\
**Category:** Plugins\
**Created:** [March 1, 2017, 4:59am UTC](https://forum.getkirby.com/t/meta-tags-plugin/6802 "2017-03-01T04:59:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [August 31, 2018, 8:23pm UTC](https://forum.getkirby.com/t/meta-tags-plugin/6802/10 "2018-08-31T20:23:54Z")

</div>

@pedroborges:

Thanks for your Kirby Meta Tags plugin. To test it I have downloaded a new Kirby Starterkit 2.5.12, installed it, then added a new snippet `site/snippets/breadcrumb.php` with the source like [Kirby docs: Breadcrumb menu](https://getkirby.com/docs/cookbook/menus#breadcrumb), added the needed css for this and added `<?php snippet('breadcrumb') ?>` in the last line of the snippet `site/snippets/header.php`.

After this I installed your Kirby Meta Tags plugin, added a new line with `<?php echo $page->metaTags() ?>` in the “head” of the snippet `site/snippets/header.php` and added your [config](https://forum.getkirby.com/t/meta-tags-plugin/6802/8) to my `site/config/config.php`.

All works and I get NO error. Thanks.

But I have read [https://schema.org/BreadcrumbList](https://schema.org/BreadcrumbList), particularly the first two paragraphs.

If I look at the source code e.g. of my page “`projects/project-c`” I find a difference between the links of the Breadcrumb menu and the links in your BreadcrumbList. Also the numbering is not correct e.g. if the (blog) pages are sorted by date.

Therefore I do not consider your configuration to be correct with the meaning of [https://schema.org/BreadcrumbList](https://schema.org/BreadcrumbList) and suggest the following start of your [configuration](https://forum.getkirby.com/t/meta-tags-plugin/6802/8) :

```php
c::set('meta-tags.default', function ($page, $site) {
    $pages = $site->breadcrumb();
    $nn = 0;
    $breadcrumb = [];

    foreach ($pages as $p) {
        $breadcrumb[] = [
            '@type' => 'ListItem',
            'position' => ++$nn,
            'item' => [
                '@id' => $p->url(),
                'name' => $p->title()->value(),
            ],
        ];
    }

```

I am pleased about your feedback.

HeinerEF

---

_[View the full topic](https://forum.getkirby.com/t/meta-tags-plugin/6802)._
