Closed samglover closed 2 months ago
When a client has requested a status update, the post ID is not reset to the main query, so later calls to get_the_ID() will return the status update request message ID instead.
Looks like the post data is not being reset in cpt_messages(). Added wp_reset_postdata() at the end of the function to remedy that.
wp_reset_postdata()
When a client has requested a status update, the post ID is not reset to the main query, so later calls to get_the_ID() will return the status update request message ID instead.