question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

working example of customTaxonomy

See original GitHub issue

Can you provide a working example of customTaxonomy in use? The example in the docs (https://frontmatter.codes/docs/content-types#custom-taxonomy-field) is not functioning correctly when used verbatim. It appears to link a taxonomyId of ‘custom taxonomy’ with a name property of a “taxonomy field” (rather than the id property?); there’s also no sense of where one should define the custom fields.

This, for example, does not work:

  "frontMatter.taxonomy.customTaxonomy": [
    {
      "title": "category singular",
      "name": "category",
      "type": "taxonomy",
      "taxonomyId": "categorySingular"
    }
  ]

I assume I just don’t understand the expected syntax for settings.json.

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
grahampcharlescommented, Feb 10, 2022

Ah, brilliant – thanks! I wasn’t understanding that the "frontMatter.taxonomy.contentTypes" setting was related.

Thanks again,

Graham

0reactions
estruyfcommented, Feb 10, 2022

Great! And it goes in settings.json?

Yes, this goes in the settings.json or in the frontmatter.json file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Custom Taxonomies | Plugin Developer Handbook
WordPress allows developers to create Custom Taxonomies. Custom Taxonomies are useful when one wants to create distinct naming systems and make them accessible ......
Read more >
How To Create A Custom Taxonomy In WordPress
WordPress' custom taxonomies make it possible to structure large amounts of content in a logical, well-organized way. In WordPress, categories ...
Read more >
How to Create Custom Taxonomies in WordPress - WPBeginner
A WordPress taxonomy is a way to organize groups of posts and custom post types. The word taxonomy comes from the biological classification ......
Read more >
How to Create Exclusive Custom Taxonomies in WordPress
According to the WordPress codex: A taxonomy is a way to group things together. For example, a bunch of different types of fruits...
Read more >
A Quick Guide to Creating Custom Taxonomies in WordPress
Custom taxonomies were introduced in WordPress 3.0 as a core feature and allow you to group posts together with more than just tags...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found