Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Getting a Specific Taxonomy in PHP

Started by Claud Rusnac 7 years ago · 0 replies · 581 views
7 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
2 250 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 594 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 416 2 months ago
Plugins · by Slebeig, 2 months ago
1 530 2 months ago
Plugins · by Rene, 3 months ago
2 730 3 months ago