Hi @pleasure94,
that’s a bit weird. This part of the code is responsible for showing the “— Closed” state behind the collection title. (Like “— Draft” is shown behind a post title.)
Can you pinpoint when exactly you get this warning?
You may also send your debug info (found under “picu > Settings > Tools/Debug”) via email, which would provide us with more context.
Cheers
Florian
I get the error in the wordpress error log file. I have sent you a message via email.
Hi @pleasure94,
we haven’t heard back from you via email, so I post my suggestion here as well:
My guess is, that another plugin or your theme is using the same filter (display_post_states) in a way, that is not providing the necessary post->ID, which causes the warning.
To figure this out, please follow this guide. You can delete (or rename) the debug.log in between tests to figure out, when exactly the error is logged.
Please let me know, what you find out.
Cheers
Florian
I’ll go ahead and close this thread for now, as we haven’t received a response. Please feel free to reach out again by opening a new thread or via email, if you still need support.