• Resolved gettinok

    (@gettinok)


    Hello,

    I’m totally new to custom posts type. I would really appreciate it if you can help me to solve this issue. A few months ago, our web developer created our company website and is now hosted by the WP Engine. We had no issues with the custom post type until recently when we migrated a backup copy of our website to other servers.

    Currently, we have two servers. One server is in the U.S hosted by the WP Engine and the other server is in China hosted by Alibaba Cloud. After migrating a copy of our website (U.S server) to another server (Public Cloud virtual machine in China), we came across that there was some missing content on our News Page and Snapshots page. We checked with the WP Engine and they said it looks like the custom post type settings are not agreeing with being imported to the other server. Perhaps the plugins and themes do not play well with site copies and thus break functionality after being copied. Based on my understanding, the data for those custom post types should still exist and should not have issues after we copy it to other servers. Since our website is stored on the public cloud virtual machine and can only be accessed in remote connection, I wouldn’t be able to link the page except going into TeamViewer or attaching images to the email.

    Since I am not familiar with your custom posts type, I would really appreciate it very much if you could guide me step-by-step on how to troubleshoot this problem. Also, please instruct me on how to send you the file so that you will be able to view it and walk me through the process on how to solve the problem.

    Thank you.

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

    (@tw2113)

    The BenchPresser

    Honestly not sure what to tell you here, as I’ve never seen this type of thing from what I assume was a basic migration. CPTUI itself stores all of its settings in the options table, and as long as that table got imported without issue, those settings should remain untouched.

    Regarding post type posts, those are all stored in the posts table and our plugin doesn’t directly interact with it.

    One thing to keep in mind with migrations is making sure you flush permalink rules by visiting that settings page and hitting save, even without touching the setting themselves. It should regenerate that part.

    Beyond that, I’m really not sure what to suggest.

    Thread Starter gettinok

    (@gettinok)

    Hi Michael,

    Thanks for getting back to me. I flushed the permalink and hit the save button, but it still gives me the same issue. I`d like to share with you to see if you ever come across this issue below:

    1, ‘post_type’=>’press_release’,’meta_key’=> ‘post_date’, ‘meta_type’ => ‘DATE’,’orderby’=> ‘meta_value’,’order’ => ‘DESC’,’post_status’ => ‘publish’); $pReleasePosts = get_posts( $pressRelease_args ); foreach ( $pReleasePosts as $pPost ) : setup_postdata( $pPost ); $title=$pPost->post_title; $description=apply_filters(‘the_content’, $pPost->post_content); $feat_image = wp_get_attachment_url(get_post_thumbnail_id($pPost->id)); //$postDate=$pPost->post_date; $date = get_field(‘post_date’, $pPost->ID); ?>

    Thanks.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    What exactly is the issue? Not displaying any results like previously did and expected?

    Since it’s doing a meta query, best guess I have is that something with the post meta changed or didn’t get migrated like expected, and thus nothing to find.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom type post break functionality after copy’ is closed to new replies.