The following code snippet did the trick:
<wp:term>
<wp:term_id><![CDATA[1]]></wp:term_id>
<wp:term_taxonomy><![CDATA[category]]></wp:term_taxonomy>
<wp:term_slug><![CDATA[test-category-1]]></wp:term_slug>
<wp:term_parent><![CDATA[]]></wp:term_parent>
<wp:term_name><![CDATA[Test Category 1]]></wp:term_name>
</wp:term>
<wp:term>
<wp:term_id><![CDATA[2]]></wp:term_id>
<wp:term_taxonomy><![CDATA[category]]></wp:term_taxonomy>
<wp:term_slug><![CDATA[sub-category-1]]></wp:term_slug>
<wp:term_parent><![CDATA[test-category-1]]></wp:term_parent>
<wp:term_name><![CDATA[Sub Category 1]]></wp:term_name>
</wp:term>
Related Posts:
- Export Posts Without Categories In An XML File
- How to show related posts by category
- Including categories in search results
- Count how many posts in category
- Custom Single Post By Category
- Convert custom fields to post categories
- How to disable Uncategorized category URL?
- Add role that restricts user to post in specific category
- Query posts from current year
- How do you get all the urls of images attached to a post?
- Show One Category on Post
- Display all posts under child sub category in sidebar on post page?
- Do I use custom post type or something else?
- How do I get the slug of a custom taxonomy category of a post?
- What Defines What Category A Post Picks (if in multiple)
- Featured Posts for Category Pages
- Limit function to specific post category
- Authors in menu, template list post by author
- Show all post titles
- ‘Invalid post type’ error when importing from one site to another
- Add Category name to Post Title (h1)
- Posts are not showing up on particular category
- Count to how many categories a post belongs to
- How much of my site can I recover from public_html?
- How to display related posts by subcategory and not parent category
- Category Template: Need to display different content on first page of archives
- How to display WordPress archive into three columns [closed]
- Display post category in foreach loop with category link
- Get mixed category random posts
- Extracting post categories
- How to limit posts by category
- How to allow users to post only in certain category and hide elements from edit page?
- XML-code sent via the POST method to the URL (API) [closed]
- Get user categories with most posts in it
- How to list recent posts in a wp nav menu?
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How to display two blog categories as separate sections on one page?
- why does wordpress ignore the post args?
- How can you display all sibling categories to a post?
- get posts from Custom Post Type & Category
- Category page when using static front page
- how to hide empty fields of post category description?
- how can i display my posts alphabetically?
- Change Post Title For Specific Category
- How to have more than one page for your posts if you have 8 posts but can store max 4 on a page
- Extract wordpress posts content and category content
- All categories displays the same posts
- Having pages after specifying post_type post
- Get latest post from categories
- How to create a playlist for audio associated with posts per category
- How to show a featured image inside a post in only 1 single category
- posts going to 2 pages/categories only show up in 1
- Display Parent Category of a Post belonging only to Subcategory
- Highlighting Current Category in the Archive and Feeds page
- Get current taxonomy and display query accordingly
- Can I style single post that are in multiple catergories?
- Geting error in post and category [closed]
- Display most recent posts in category with Twenty Ten theme widget
- Display a specific category in a focused area of my site
- How to make ajax load posts from the current category?
- Show single post child category from a determined parent
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Create/Set Category as Title of Post
- How to distinguish pages created by woocommerce?
- How to display related post from same category in single.php
- Save All Post Permalink From A Specific Category into a .txt file
- show image gallery in archives or category page
- Page with Category Returning 1
- get current index of post content in category page
- Allow registering user to select post category when signing up to blog
- Get 5 most recent categories
- Dynamically load posts based on category
- Get Categories & Posts With Type Article
- How can I get post text from all posts on a WordPress news site?
- Nothing appears using get_the_excerpt() in category.php
- Set multi posts random categories and tags
- Add new post only in assigned category
- Changing the Category for all posts of an Author
- Custom plugin to get related posts by category
- Unable to uncheck a category in a post
- Admin Post List Only Show One Category
- Add category attribute to custom recent post shortcode
- Same sidebar in all posts as in the category
- How do I list categories and the common categories for posts beneath those categories?
- Latest Posts not in the right order
- Retrieve latest post by multiple categories with ID
- How to Include a common category in a custom Category Search
- How to display only one post on first category page and rest on next pages?
- how to style an individual page in a category [duplicate]
- each user having category with their name and can add sub categories post in that category
- Can’t assign another category other than Uncategorized int he following front end post submission form?
- Viewing category won’t show up Custom post type posts
- exclude certain categories from posts
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- Listing category and its posts one by one
- Print out one of 2 post category [closed]
- How to get if category has posts?
- Show some texts in posts belonging to Specific category
- Site ‘Categories’: save an admin global setting with post metadata [closed]