Tags

    Snippet code to work with tags.

    The following codes work in Bludit > v2.1
    By default, the database of tags is alphanumeric sorted.

    List all tags

    <?php
        $tags = getTags();
    
        foreach ($tags as $tag) {
            echo 'Tag name: '   . $tag->name();
            echo 'Tag key: '    . $tag->key();
            echo 'Tag link: '   . $tag->permalink();
            echo 'Tag amount of pages: ' . count($tag->pages());
        }
    ?>