Currently, I makes a plugin, and I want to display some post in admin submenu, my url looks like
wp-admin/admin.php?page=mypluginpage
how to display posts list on my plugin page? it's possible or not?
Thanks.
Please delete this post, I just found solution:
<?php
$query = new WP_Query(
array(
'post_type' => 'post',
'post_status' => 'publish'
)
);
$list = array();
foreach ($query->posts as $post) {
.......
}
?>