Undefined index warning | WordPress.org

Yup, this seems to be an issue when certain conditions are met: PHP8 became a lot more strict with error reporting, and depending on the environment (e.g. if your host hasn’t locked down E_NOTICE & E_WARNING messages), you might get these with a shortcode like the one you mentioned.

I had to modify my environment to get this to show, but it did after I restarted. I’ve updated the code and tested it, eliminating a couple of other undefined warnings that were showing too. Once I’ve finished the PHPCS tests, I’ll release an updated version, hopefully later today.

cool, thank you for the quick and detailled reply!


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer