Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft implementation of terms import for term-parent slug and term meta #76

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

dregula
Copy link

@dregula dregula commented Jul 23, 2016

Just discovered this version 2 of the WordPress Importer, it is a great improvement over v1!

My site (4.5.3) makes extensive usage of hierarchical terms and of term-meta.
It seems that the v4.5 (maybe earlier) export.php will exports a parent slug, rather than an integer ID.

I took the liberty of drafting some code to implement term parentage and term meta.

The attached diff seems to correctly remap an export with a slug for a term parent.
(I always got a slug with my term exports, never an integer. This diff handles everything in the parent element as a string, e.g wp:category_parentSTRING/wp:category_parent )

This diff also will upload term-meta, including multiple wp:termmeta/ elements within the same term.

This diff has been tested only for category, not tags or other taxonomies.

(warning: I haven't submitted a request for any project in many years! ;-)
Thank you! -Don

class-wxr-importer.diff.txt

capuderg added a commit to awesomemotive/one-click-demo-import that referenced this pull request Dec 1, 2016
Updated content import composer package.
This should resolve the #61 issue.

Most of the code was from the PR on the original WP importer 2.0:
humanmade/WordPress-Importer#76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant