Title: PHP Warning Undefined array key &#8220;post_type&#8221;
Last modified: August 21, 2025

---

# PHP Warning Undefined array key “post_type”

 *  Resolved [deputt](https://wordpress.org/support/users/deputt/)
 * (@deputt)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-post_type/)
 * Hi. TQ for this excellent plugin which we’ve been using for a while.
 * We’ve been seeing a lot of the following warnings in our website’s error_log:
 * [`20-Aug-2025 19:52:05 UTC] PHP Warning: Undefined array key "post_type" in /
   public_html/wp-content/plugins/ts-search-slug/plugin.php on line 300
   [20-Aug-
   2025 19:54:45 UTC] PHP Warning: Undefined array key "post_type" in /public_html/
   wp-content/plugins/ts-search-slug/plugin.php on line 300[20-Aug-2025 19:55:34
   UTC] PHP Warning: Undefined array key "post_type" in /public_html/wp-content/
   plugins/ts-search-slug/plugin.php on line 300[20-Aug-2025 19:57:12 UTC] PHP Warning:
   Undefined array key "post_type" in /public_html/wp-content/plugins/ts-search-
   slug/plugin.php on line 300[20-Aug-2025 19:58:02 UTC] PHP Warning: Undefined 
   array key "post_type" in /public_html/wp-content/plugins/ts-search-slug/plugin.
   php on line 300[20-Aug-2025 19:58:03 UTC] PHP Warning: Undefined array key "post_type"
   in /public_html/wp-content/plugins/ts-search-slug/plugin.php on line 300[20-Aug-
   2025 19:59:11 UTC] PHP Warning: Undefined array key "post_type" in /public_html/
   wp-content/plugins/ts-search-slug/plugin.php on line 300[20-Aug-2025 19:59:27
   UTC] PHP Warning: Undefined array key "post_type" in /public_html/wp-content/
   plugins/ts-search-slug/plugin.php on line 300
 * Please advise.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-undefined-array-key-post_type%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  anonymized-15531514
 * (@anonymized-15531514)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-post_type/#post-18608028)
 * Hallo [@deputt](https://wordpress.org/support/users/deputt/) , thank you for 
   your inquiry. I will look into it within the next few days and will let you know
   as soon as the issue is resolved. I apologize for the inconvenience. Best regards.
 *  anonymized-15531514
 * (@anonymized-15531514)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-post_type/#post-18610997)
 * Hello [@deputt](https://wordpress.org/support/users/deputt/) .
   thank you for 
   your patience.
 * The error should be resolved. Please update the plugin to version 1.0.7.
 * Please contact me here if you experience any further problems or have suggestions
   for improvement.
 * Please be sure to let me know here if everything is working to your satisfaction.
 * I wish you a nice weekend.
 * Best regards
 *  Thread Starter [deputt](https://wordpress.org/support/users/deputt/)
 * (@deputt)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-post_type/#post-18611981)
 * TQ, @tsinf , for the update which resolved the issue. God bless you 🙂
 *  anonymized-15531514
 * (@anonymized-15531514)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-post_type/#post-18613982)
 * Hello [@deputt](https://wordpress.org/support/users/deputt/) .
 * I am very pleased that the error no longer occurs. If the plugin doesn’t work
   as expected again in the future, please let me know here in the support area.
 * Did you know that the plugin recently added new features? You can now search 
   or sort by post ID, and more. However, these features must be enabled in the 
   settings.
 * I’m glad you find the plugin useful. I would be very grateful for a review.
 * I hope you have a great time. Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Warning Undefined array key “post_type”’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ts-search-slug.svg)
 * [TS Search Slug](https://wordpress.org/plugins/ts-search-slug/)
 * [Support Threads](https://wordpress.org/support/plugin/ts-search-slug/)
 * [Active Topics](https://wordpress.org/support/plugin/ts-search-slug/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ts-search-slug/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ts-search-slug/reviews/)

## Tags

 * [error_log](https://wordpress.org/support/topic-tag/error_log/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 4 replies
 * 2 participants
 * Last reply from: anonymized-15531514
 * Last activity: [9 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-post_type/#post-18613982)
 * Status: resolved