Notice: Undefined index: showtitle
-
When I had “show errors” on in PHP/WP Debug, found this notice:
Notice: Undefined index: showtitle in
/cc-child-pages/includes/ccchildpages_widget.php on line 195
Using WP 5.5.1 and this plugin’s 1.3.8Look for a line like this:
$instance['showtitle'] = $new_instance['showtitle'];
and change it to this:
$instance['showtitle'] = @$new_instance['showtitle'];
That is, we add the @ symbol so that if there is an error, PHP keeps quiet about it. (Probably not the best fix!)
BTW it looks to me like this works great with Elementor! I was able to find the settings when inserting the widget and it looks really great.
Feature request: An option to also show the current page in the list, with a class of “current-page”. That way you could use this widget on any page and it would show the page’s placement in the order of the siblings.
- The topic ‘Notice: Undefined index: showtitle’ is closed to new replies.