Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter stuartborders

    (@stuartborders)

    I have found the record in the options table, and it has the “www.” address in the icon paths, but thats the only URL reference for either post type record. There has to be somewhere else that is URL specific that isn’t working right?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Best idea I have for this is that you had a full domain url for the custom icon path, but it didn’t get changed properly, and due to the serialization that WP does, caused the option to get lost.

    What I would do is go back to the dev site, use the import/export area to get a JSON version of your settings, change the URL appropriately, and import that into the live site. You’ll retain all your same settings, the URL will be changed for the icon, and you won’t have to worry about the serialization issue. I can point you to some StackOverflow topics on the topic if you really want me to.

    Thread Starter stuartborders

    (@stuartborders)

    It’s not the icon Im worried about. The whole post type is missing. The record is still in the options table, but it doesn’t show in the CPT UI admin or the dashboard navigation. Its also not found at the actual URL harvestselect.com/recipes even though I have posts and a custom archive/single template for it. There isn’t a dev site, this is the site I developed. I just pointed their domain here and updated the database.

    All that is manipulated by the plugin is database records right? so where could it be missing something? Seems like something is just not connecting.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you flush the permalinks rules after you were done? It’s the only thing I can think of, if the actual settings for things are still present, see below, and the post type content are still in the wp_posts table.

    The only thing CPTUI saves to the database itself is 2 rows in the wp_options table, to store the settings for all post type settings and all taxonomy settings.

    Thread Starter stuartborders

    (@stuartborders)

    I updated permalinks first thing, and since then.

    I decided to just try to re-add the cpts via the admin and it allowed me and worked. All of my posts are there and I can see them as singular posts (https://www.harvestselect.com/recipes/classic-blackened-catfish-arugula-pear-walnut-gorgonzola-salad/). They even use the custom fields and template that I created.

    However the archive isn’t working? https://www.harvestselect.com/recipes/

    I have updated permalinks since re-adding the cpts as well. What would cause the archive to not show?

    thanks again for your help!

    Stuart

    Thread Starter stuartborders

    (@stuartborders)

    DUH!!!! sorry im slow. I went and turned on the archive in the admin…. sorry!! thanks so much for your help!!!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good to hear things are back up and running Stuart. Kind of wish I knew exactly what happened so I can see if I can harden the process a bit more on our end and prevent it from happening in the future.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘CPT lost on Site Publish’ is closed to new replies.