Added
-
Support for JSON-LD schema:
$tags = new MetaTags; $tags->jsonld([ '@context' => 'http://schema.org', '@type': 'Person', 'name': 'Pedro Borges' ]);
-
Support for rendering one tag or a specific group of tags:
<?php echo $tags->render('json-ld') ?> // or pass an array <?php echo $tags->render(['og', 'twitter']) ?>
Fixed
- Tags with empty value being rendered with invalid markup.