You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I finally had a chance to look at this today and here's what I'm working on as a plan forward to handle this case where an array was used as the post_type instead of a string:
write a wp-cli script to update all existing multiple thumbnails to correct the post_type in the meta key
provide the SQL statement to do the above for anyone that can't run wp-cli scripts
Once this is done, you'd be able to run the cli script or SQL and then change your code that registers the thumbnails to use a string for post_type instead of an array.
The end result is that this will fix any existing thumbnails and then use the currently supported method of registering the thumbnail so it won't be a problem going forward either.
Hi Chris,
As per our email:
I suspect at least part of the issue is that $post ->post_type is now an array. Use get_post_type() instead.
You can get more info here:
https://wordpress.org/support/topic/bugfix-bug-with-multiple-post-types-wp-4-5/
Thanks
The text was updated successfully, but these errors were encountered: