• Resolved wheelorg

    (@wheelorg)


    I have created custom post types and custom fields. I want to assign post types to existing posts so that I can sort the posts by custom fields. Ex: I want to assign this post the type “art” and sort all art posts by the field “catalog-number”.

    The page I need help with: [log in to see the link]

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

    (@tw2113)

    The BenchPresser

    Hi @wheelorg,

    I’m kind of following what you’re getting at, but not at the same time. It kind of sounds like you’re wanting to make a connection between two posts, but not at the same time.

    Based on what you’ve said above, you’d be working with these two post types:
    post
    art

    Then “catalog-number” would be a custom field. However, I’m not sure how that ties in with the detail about sorting or where the catalog number is going to be coming from in terms of all your content.

    Until I have further details, I have to assume something is possible for what you’re aiming for, but it’s not going to be something coming from CPTUI alone, it’s going to involve other custom coding as well. Our plugin only does the registration of the content types, and what happens with them afterwards is always up to the site owner.

    Thread Starter wheelorg

    (@wheelorg)

    Ignore all the other detail, Michael. ?? What I need from you is just: Now that I have custom post types, how do I set an existing post from type “post” to type “one of my new post types” ?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Thread Starter wheelorg

    (@wheelorg)

    I found it! It takes another plugin, “Post types switcher”. Now I just go through 100 existing posts one by one in quick edit. :/

    Thread Starter wheelorg

    (@wheelorg)

    And with Convert Post Types, I can do it in batches! ??

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Whatever gets the job done ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Assign custom post type to existing posts’ is closed to new replies.