Title: Undefined property: stdClass::$post_type
Last modified: August 28, 2025

---

# Undefined property: stdClass::$post_type

 *  Resolved [V.E.L](https://wordpress.org/support/users/vezraimanuel/)
 * (@vezraimanuel)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/undefined-property-stdclasspost_type-2/)
 * Hi, I got so many warnings like this in my php error.log:
 * PHP Warning: Undefined property: stdClass::$post_type in /plugins/wp-rss-aggregator/
   v4/src/Handlers/FeedTemplates/HidePublicTemplateContentHandler.php on line 52
 * WP RSS Aggregator Version 5.0.2 (Premium)
 * PHP version PHP 8.4.11
 * many thanks

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

 *  Plugin Support [Hendra Setiawan](https://wordpress.org/support/users/hendcorp/)
 * (@hendcorp)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/undefined-property-stdclasspost_type-2/#post-18618633)
 * Hi [@vezraimanuel](https://wordpress.org/support/users/vezraimanuel/)
 * Thanks for reporting this and for including the error details, it’s much appreciated.
 * Since you’re using the Premium version of Aggregator, we kindly ask that you 
   contact us via our [support form](https://www.wprssaggregator.com/contact/) for
   further assistance. We aren’t able to offer premium support here in the forum,
   as per its rules.
 * Looking forward to helping you further there!
 *  Thread Starter [V.E.L](https://wordpress.org/support/users/vezraimanuel/)
 * (@vezraimanuel)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/undefined-property-stdclasspost_type-2/#post-18619914)
 * Thank you for you reply, I’ve fixed the problem by changing line 52 into this:
 * if ( property_exists($post, ‘post_type’) ) { if (!is_object($post) || $post->
   post_type !== $this->cpt) {
 * The problem goes away for now, not sure if I’m doing it correctly though.
    -  This reply was modified 9 months, 1 week ago by [V.E.L](https://wordpress.org/support/users/vezraimanuel/).
    -  This reply was modified 9 months, 1 week ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

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

The topic ‘Undefined property: stdClass::$post_type’ is closed to new replies.

 * ![](https://ps.w.org/wp-rss-aggregator/assets/icon-256x256.gif?rev=3157090)
 * [RSS Aggregator - RSS Import, News Feeds, Feed to Post, and Autoblogging](https://wordpress.org/plugins/wp-rss-aggregator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-aggregator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-aggregator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-aggregator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [V.E.L](https://wordpress.org/support/users/vezraimanuel/)
 * Last activity: [9 months, 1 week ago](https://wordpress.org/support/topic/undefined-property-stdclasspost_type-2/#post-18619914)
 * Status: resolved