• We are planning to launch our multi user site using WordPress as a CMS and find it a great tool for what we need it to do.

    The only restriction that we have encountered, as in the title, is the ability for multiple users (of various roles and levels) to have a custom view of the dashboard that just displays posts – and possibly media, relating to them. Is there a solution to enable user specific views on individual dashboards?

Viewing 1 replies (of 1 total)
  • Didn’t spend a lot of time testing this, but for posts for a given user, take the https://www.ads-software.com/extend/plugins/dashboard-recent-posts-extended/ plugin and make these changes:

    from:

    global $wpdb;
    $widget_options = DashboardRecentPostsExtended_Options();
    $request = "SELECT $wpdb->posts.*, display_name as name FROM $wpdb->posts LEFT JOIN $wpdb->users ON $wpdb->posts.post_author=$wpdb->users.ID WHERE post_status IN ('publish','static') AND post_type ='post' ";

    to

    global $wpdb, $current_user;
    $widget_options = DashboardRecentPostsExtended_Options();
    $request = "SELECT $wpdb->posts.*, display_name as name FROM $wpdb->posts LEFT JOIN $wpdb->users ON $wpdb->posts.post_author=$wpdb->users.ID WHERE post_status IN ('publish','static') AND post_type ='post' AND post_author=$current_user->id ";

Viewing 1 replies (of 1 total)
  • The topic ‘Dashboard display: posts specific to an individual user?’ is closed to new replies.