Error displayed when using custom post type
-
Hi,
I’ve got an error displayed on the page when using the plugin with a custom post type:
Notice: Undefined index: include_cat_ in /XXX/wp-content/plugins/post-carousel-for-dv-builder/includes/postcarousel.php on line 897
I first thought it was linked to the fact that i used a custom post type which didn’t have any taxonomy.
But after adding one and setting the same one to all custom posts, I selected the taxonomy in my carousel’s options, but I still get the error.The carousel is functionnal though, so I think it’s just a missing control of something like that to avoid getting the error.
I made a quick fix:
$include_categories = (! empty ($this->props['include_cat _'. $selected_tax]))? $this->props['include_cat _'. $selected_tax]: null;
but I don’t know if it can cause any side error so I let you investigate it anyt further
- The topic ‘Error displayed when using custom post type’ is closed to new replies.