Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Notice given on Archive page when there are no posts

$
0
0

Replies: 0

Hi,
I’m getting a PHP notice on my archive page for a custom post type when there aren’t any posts of that type – is that normal?
The notice I’m getting is:
Notice: Trying to get property of non-object in C:\Users\Me\Documents\project\public_html\wp-content\plugins\members\inc\template.php on line 95
As soon as I create a post of the correct type, the notice goes away.
I have define('WP_DEBUG', false); set in my wp-config so I would have thought this notice would be hidden?
Many thanks
Kevin

  • This topic was modified 1 minute ago by the_lar.

Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>