Custom post type error
-
Hello all!
I have a small issue with custom post types:I have created a custom post types, called products.
Everything is works fine, except that sometimes, when searching for some product in the admin section, i get an error page that says “invalid post type”.The URL of this page is smth like this
https://www.casedemarcat.com/wp-admin/edit.php?s=Cas+DBB&post_status=all&post_type=Array&_wpnonce=c0b903f2bf&_wp_http_referer=%2Fwp-admin%2Fedit.php%3Fs%3DCas%2B%26post_status%3Dall%26post_type%3Dproduct%26action%3D-1%26m%3D0%26cat%3D0%26seo_filter%26page %3D1%26mode%3Dlist%26action2%3D-1&action=-1&m=0&cat=0&seo_filter=&paged=1&mode=list&action2=-1
I have found out that if i replace “post_type=Array&…” with “post_type=product&…” in the url it works just fine. Any of you have and idea on how to avoid this?
Thanks!
- The topic ‘Custom post type error’ is closed to new replies.