• Resolved DenisCGN

    (@deniscgn)


    Hello,
    I need some help.
    I started working using TAXONOMIES, but now I think, I better use CPTs.
    Is there a way I can transfer my Taxonomies into CPT?
    Thanks a lot,
    Denis

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you talking in terms of the content created with the taxonomies? or you mean you registered taxonomy “movies” with CPTUI and you now want to instead have that be a post type?

    Thread Starter DenisCGN

    (@deniscgn)

    @tw2113

    Exactly, this is what I like to have.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sorry, but which one are you confirming? Content already created to convert vs CPTUI settings?

    Thread Starter DenisCGN

    (@deniscgn)

    Hello,

    I already got lots of content.

    I created (with CPTUI) a taxonomy “ARTIST” and I like to put all the artists into a CPT “artists”.
    So, the content is already created.

    Website with example

    The grey box is the taxonomy ARTIST and other.

    I want it to change into a CPT.

    Denis

    • This reply was modified 4 years, 5 months ago by DenisCGN.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Gotcha. That said, I don’t have any easy or great answer for you, as I’ve never attempted anything like this and it’s not something the plugin is built to handle.

    I’m wondering you could create the “artist” post type, and then do a quick query for all the terms in your artist taxonomy, and then loop over them, grabbing details like term name and term slug, and make use of the wp_insert_post() function. Not sure if you have any sort of term meta set up as well, but you could add in fetching the term meta and converting to post meta with the post ID that wp_insert_post() returns upon success.

    Best I have at the moment for ideas.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Taxonomies to CPTs’ is closed to new replies.