Skip Navigation

[Resolved] Trying to figure out relationship and how to import content from existing site

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 3 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1998721

Hello, I’m trying to figure something out and a bit of help would be wonderful. Thank you in advance.

At the moment, my site uses a custom plugin that I had build years ago to create a CPT, a taxonomy and to display both of those. I aim to replace the custom plugin with toolsets completely. Of course, I want to keep all of my content and just set it all up with Toolsets instead.

So, here’s how the site works at the moment:

Posts —> These are news stories about one celebrity. E.g. discussing a charity event.

CPT called Items —> These are a CPT listing items of clothing worn by the celebrity.

Taxonomy —> Events. These link the two so that the relevant items can be displayed on the relevant posts and vice versa. (E.g.) All items worn in this blog post, a list of all blog posts where this item was worn...) This Event Taxonomy archive is not used for anything further, not displayed on the site or indexed by Google. I don’t intend to use it for anything going forward either so if it’s redundant or there’s a better way of creating relationships, we can delete it.

It’s the ITEM —> EVENT —> POST relationship I’m confused by and how to set this up on my site.

I think this will be a many-to-many relationship? But I’m not certain about that.

I also don’t know how to set this up in practical terms. Or how to import my content in. I've looked at the WP All Import plugin very briefly, is that something that would work in this instance?

I feel like this is a big question so I really appreciate any help or feedback that can be offered.

------- For extra context:

I have further taxonomies too:

Item type for the Item CPT (shoes, coats etc) with their own archives.

Colours and Brands - At the moment a post taxonomies. I’d like them to be an item taxonomies too, and I'm hoping to achieve this with toolsets.

This is so I can create an archive page for the colour or the brand and create an archive page listing BOTH. Ideally, under separate headings or in separate places on the archive.

#1998803

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not sure why you want to create post relationship as you have already existing structure where you have posts, custom post type Items and taxonomy Events that where Events taxonomy is linked to custom post type Items.

That means, basically what you need to import is posts, custom post type and taxonomy that means you can import the same structure using WP ALL Import.

I'm not sure why you want to create post relationship here to make things even more complicated.

#1999105

Hello and thank you for replying.

I had assumed I needed to?

The way my posts/items are displayed is controlled by the old plugin. I assumed to display them using Toolset—e.g. to display all of the items associated with a post on that post page— I'd need to create relationships?

The way you've replied suggest I don't need a relationship to do this, but I can keep the existing taxonomy and use that somehow instead? I'll investigate.

I shouldn't think I'd need WP All Import in that case? I think I can probably just recreate the existing post types and taxonomies in Toolset using this tutorial - https://toolset.com/course-lesson/convert-existing-custom-types-and-fields-to-types-control/

Thanks

#1999189

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The way my posts/items are displayed is controlled by the old plugin. I assumed to display them using Toolset—e.g. to display all of the items associated with a post on that post page— I'd need to create relationships?
==>
If you want to associate the posts of post type A with post type B, yes, you will require to create post relationship but as you already have working structure, you should check if its feasible for you to create post relationship and import the posts.

Here is the Doc about how you can import the content using CSV files:
=> https://toolset.com/course-lesson/how-to-import-content-into-wordpress-using-csv/

And within the "Related Topics" section with the above link, you will find links about how you can import posts with relationhip.

I shouldn't think I'd need WP All Import in that case? I think I can probably just recreate the existing post types and taxonomies in Toolset using this tutorial - https://toolset.com/course-lesson/convert-existing-custom-types-and-fields-to-types-control/
==>
Yes - exactly.