Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Getting a Specific Taxonomy in PHP

Started by Claud Rusnac 8 years ago · 0 replies · 740 views
8 years ago

I have a the following page front matter:

YAML
title: Integrated Information Security Analysis Team
taxonomy:
    category: ['docs']
    policy: ['im']
    id: ['im-05']
modified_date: 07/17/2017

I am writing a plugin where I need to pull the $page->taxonomy(id); but that doesn't seem to work? How do I read that value using php?

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 391 4 weeks ago
Plugins · by renedebaaij, 1 month ago
1 302 1 month ago
Plugins · by Thomas, 1 month ago
1 324 1 month ago
Plugins · by complanar, 2 months ago
6 649 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 571 2 months ago