admin管理员组文章数量:1130349
WP 3.8.1
Posts Categories:
- News
1.1 Press Release
1.2 etc. - Blog
2.1 Technology
2.2 Around The World
2.3 Eetc.
"Invalid Post Type" example:
Posts => Filter by "Press Release" + checkmark ALL + Edit + Apply + I change the author name + Apply:
wp-admin/edit.php?s=&post_status=all&post_type=Array
I basically want to change all Press Release author names. That's it. But I keep getting "Invalid Post Type" error.
WP 3.8.1
Posts Categories:
- News
1.1 Press Release
1.2 etc. - Blog
2.1 Technology
2.2 Around The World
2.3 Eetc.
"Invalid Post Type" example:
Posts => Filter by "Press Release" + checkmark ALL + Edit + Apply + I change the author name + Apply:
wp-admin/edit.php?s=&post_status=all&post_type=Array
I basically want to change all Press Release author names. That's it. But I keep getting "Invalid Post Type" error.
Share Improve this question asked Mar 3, 2014 at 15:11 Tai SemTai Sem 811 silver badge11 bronze badges 3 |1 Answer
Reset to default 2I've found a solution for me. A function from my functions.php file was in conflict with my filter admin.
I had to find where was my error, for that I just cut and paste my function one by one and test again and gain till I found my conflict function.
In my case I had to put my function in a conditional tag:
if(!is_admin()){
//Your conflict function
}
So Your function will be executed only on the theme and not in your admin.
WP 3.8.1
Posts Categories:
- News
1.1 Press Release
1.2 etc. - Blog
2.1 Technology
2.2 Around The World
2.3 Eetc.
"Invalid Post Type" example:
Posts => Filter by "Press Release" + checkmark ALL + Edit + Apply + I change the author name + Apply:
wp-admin/edit.php?s=&post_status=all&post_type=Array
I basically want to change all Press Release author names. That's it. But I keep getting "Invalid Post Type" error.
WP 3.8.1
Posts Categories:
- News
1.1 Press Release
1.2 etc. - Blog
2.1 Technology
2.2 Around The World
2.3 Eetc.
"Invalid Post Type" example:
Posts => Filter by "Press Release" + checkmark ALL + Edit + Apply + I change the author name + Apply:
wp-admin/edit.php?s=&post_status=all&post_type=Array
I basically want to change all Press Release author names. That's it. But I keep getting "Invalid Post Type" error.
Share Improve this question asked Mar 3, 2014 at 15:11 Tai SemTai Sem 811 silver badge11 bronze badges 3- Do you have any plugins installed? What theme? – s_ha_dum Commented Mar 3, 2014 at 15:37
- Custom theme with a handful of functions inside functions.php. Currently debugging with all plugins disabled. Bulk Edit works fine with Twenty Fourteen theme. Nothing special in my custom theme--but is there a gotcha I should be aware of? Is there a known limitation? Thanks – Tai Sem Commented Mar 3, 2014 at 17:23
-
Something is using an
arrayas if it were a string. I have a hard time believing that Core code is doing that. – s_ha_dum Commented Mar 3, 2014 at 18:17
1 Answer
Reset to default 2I've found a solution for me. A function from my functions.php file was in conflict with my filter admin.
I had to find where was my error, for that I just cut and paste my function one by one and test again and gain till I found my conflict function.
In my case I had to put my function in a conditional tag:
if(!is_admin()){
//Your conflict function
}
So Your function will be executed only on the theme and not in your admin.
本文标签: Invalid Post Type error when attempting to filter and Bulk Edit posts
版权声明:本文标题:Invalid Post Type error when attempting to filter and Bulk Edit posts 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749245535a2338810.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


arrayas if it were a string. I have a hard time believing that Core code is doing that. – s_ha_dum Commented Mar 3, 2014 at 18:17