Invalid Post Type error when attempting to filter and Bulk Edit posts

I’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.

Leave a Comment