0
votes
1answer
2k views

How to get the post id (of the parent custom custom type) in a loop inside a widget?

Below there is a widget with a Wordpress loop inside. It works as expected. The only problem is this part: 'post_parent' => $post->ID, The widget is not getting the post->ID of the parent ...