• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Faiyaz Vaid

    (@vaidfaiyaz)

    Hi @improvedline

    Thanks for the code fix. It will not affect anything. Also I am fixing this in my next version release. Thanks again ??

    I have the same error now but it appears on the live site under the main menu
    Notice: Undefined index: include_cat_ in /www/icgleadership_414/public/wp-content/plugins/post-carousel-for-dv-builder/includes/postcarousel.php on line 897

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error displayed when using custom post type’ is closed to new replies.