Skip to content

Use cat_name instead of category_nicename for categories #140

@natrius

Description

@natrius

It seems your tool is using the nicename but according to WP description its just for the URL "The “title form” is the readable URL version of the name. It normally consists only of lowercase letters, numbers and hyphens."

I tried to look at wordpress-export-to-markdown\src\frontmatter\categories.js but i'm not sure what i have to change there unfortuantely. I think the same applies to tags.

Heres part of the export.xml (exported today, but WP Version 6.6.2 - we are not able to update due to various reasons, thats why we are switching to hugo currently) to illustrate what i mean

<wp:category>
		<wp:term_id>6</wp:term_id>
		<wp:category_nicename><![CDATA[technikundtools]]></wp:category_nicename>
		<wp:category_parent><![CDATA[]]></wp:category_parent>
		<wp:cat_name><![CDATA[Technik &amp; Tools]]></wp:cat_name>
	</wp:category>

(Or is this on purpose and i missed it?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions