0

I want to show posts listing(almost like the default post listing page) on the dashboard page. And if that is not possible then maybe on a new page in the admin area.

This is the post meta that needs to be used for categorising data:

get_post_meta($post->ID, 'owner', true);
get_post_meta($post->ID, 'assignee', true);

The value for these is the user who owns the post and the user who is assigned to work on that post.

Basically, I want to create a "My Desk" page for users where they can see some posts listed categorised by post meta. I'm fairly new to WordPress and can't get an idea as to how this can be achieved.

Any help is appreciated, thank you!

4
  • You can code dashboard widget for example, but you should provide some code also, what post type do you have, what post meta etc.
    – anton
    Commented May 4, 2021 at 7:25
  • Go through the WP Query class. That's most of the things you will need.
    – Abhik
    Commented May 4, 2021 at 8:49
  • @anton Thanks for suggesting that but I don't want the listing as a dashboard widget, instead I want it similar to the default posts listing page(edit.php). The post type is default posts and I have added post meta to the question. Commented May 4, 2021 at 10:35
  • @Abhik I checked it but one question, how can I use this to display the posts listing in the dashboard area? Commented May 4, 2021 at 10:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.