WordPress.org

Ready to get started?Download WordPress

Forums

User Access Manager
Draw out pages for a user group (1 post)

  1. kathatp
    Member
    Posted 12 months ago #

    Hi, I would like to draw out all pages that are assigned to the current user's user group.

    Unfortunately I can't even draw anything from that table. Could someone please take a look at my query?

    global $wpdb;
    $table = $wpdb->prefix . 'uam_accessgroup_to_object';
    $results = $wpdb->get_var("SELECT object_id FROM $table");
    if ( $results ) {
    foreach ( $results as $result ) {
    $result->object_id;
    }
    }

    http://wordpress.org/plugins/user-access-manager/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags