Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Getting a Specific Taxonomy in PHP

Started by Claud Rusnac 8 years ago · 0 replies · 631 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 complanar, 2 weeks ago
6 375 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 190 2 weeks ago
Plugins · by complanar, 1 month ago
2 470 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 749 2 months ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 588 2 months ago