Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Justin

Can’t filter by author — probably because I changed user role names

I know ACP supports filtering by Author, but I don’t have that option for my Author column (I can still enable sorting or editing, though). Screenshot: http://take.ms/HalFM

I’m using User Role Editor plugin to modify user roles but have the same issue even with it deactivated.

I have a feeling it has something to do with a function I used to change the names of my user levels (from Subscriber to Client, Author to Inspector, etc.)

Do you think that’s why my Author filter isn’t available?
Is there any way to allow filtering by Author even after I’ve run this function?:


// CHANGE USER ROLE NAMES (CHANGES NAME IN DB, ONLY NEEDS TO RUN ONCE)
/*
function change_role_name() {
    global $wp_roles;

    if ( ! isset( $wp_roles ) )
        $wp_roles = new WP_Roles();

    //You can list all currently available roles like this...
    //$roles = $wp_roles->get_names();
    //print_r($roles);

    // options: administrator, editor, author, contributor, subscriber
    $wp_roles->roles['subscriber']['name'] = 'Client';
    $wp_roles->role_names['subscriber'] = 'Client';
}
add_action('init', 'change_role_name');
*/

// DELETE ROLE (CHANGES DB, ONLY NEEDS TO RUN ONCE)
// options: administrator, editor, author, contributor, subscriber
// remove_role( 'contributor' );
9 years, 1 month ago
Tobias Schutter
Developer

I will have a look at your issue. I’ll get back to you shortly.

9 years, 1 month ago
Justin

Ah! Nevermind. I did a clean install and realized it wasn’t the plugin or the function at all, I simply misunderstood which “Author” column is filterable…

Docs:
Screenshot of documentation page

FYI you might want to update the features page which says “For example you will be able to filter by custom fields, author, comment status…” which lead to my confusion.

My columns:
Screenshot of my columns

So for anyone else that runs into this:
“Author” type = not filterable
“Display Author As” type = filterable

Out of curiosity… is there any way to make the “Display Author As” column results clickable to view all of that author’s posts in the same way the standard “Author” column does?

Thank you!

9 years, 1 month ago
Tobias Schutter
Developer

Great, that’s exactly what the column is for! Thank you for clarifying on how to solve this issue for other users. I have added your suggestion to our roadmap v.3.5, you can track it on github.

9 years, 1 month ago

You must be logged in to reply to this topic.