Title: PHP Notice when using shortcode
Last modified: August 22, 2016

---

# PHP Notice when using shortcode

 *  [zigpress](https://wordpress.org/support/users/zigpress/)
 * (@zigpress)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-notice-when-using-shortcode/)
 * If I placed the [qa] shortcode on a page, and excerpts is not ticked in the settings,
   I get
 * Notice: Undefined index: excerpts in /PATH/TO/SITE/wp-content/plugins/q-and-a/
   inc/shortcodes.php on line 24
 * For now I’ve added a @ to suppress it but that will only work until the plugin
   is updated again.
 * [https://wordpress.org/plugins/q-and-a/](https://wordpress.org/plugins/q-and-a/)

The topic ‘PHP Notice when using shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/q-and-a.svg)
 * [Q and A FAQ and Knowledge Base for WordPress](https://wordpress.org/plugins/q-and-a/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/q-and-a/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/q-and-a/)
 * [Active Topics](https://wordpress.org/support/plugin/q-and-a/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/q-and-a/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/q-and-a/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [zigpress](https://wordpress.org/support/users/zigpress/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/php-notice-when-using-shortcode/)
 * Status: not resolved