Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Create Categories in Grav

Started by Iñigo 7 years ago · 2 replies · 1135 views
7 years ago

Hello everyone!

Sorry for my English...

I explain myself, I have exported all the pages of my Wordpress with the complement. I copied them in the pages section of Grav.

And now I need to import the Categories that the WP plugin has exposed to me, but I'm new, I don't control a lot of programming...

I attach an image, with the txt I have to import the categories in Grav.

Crear%20Categor%C3%ADas|690x205

How can I create the categories, step by step?

I really appreciate your help 😀

👍 1
7 years ago

There is no direct way to take categories from WordPress to Grav, you'll want to make sure you have taxonomies: [category,tag] in site.yaml (see Taxonomy), and use the category in each Page. For example:

YAML
---
title: Post 1
taxonomy:
    tag: dog
    category: animal
---
👍 1
7 years ago

Ok OleVik, thank you very much for your response 😀

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 100 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 187 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 63 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 259 1 year ago