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

Create Categories in Grav

Started by Iñigo 7 years ago · 2 replies · 1369 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, 11 months ago
6 1193 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 960 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 841 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 761 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1175 2 years ago