How to encode author ID in the author permalink
How to encode author ID in the author permalink
How to encode author ID in the author permalink
You can use the post_password_required filter. function wpse406803_whitelist_author( $required, $post ) { //Check if current user is the post author if ( $post->post_author == get_current_user_id() ) { return false; } } add_filter( ‘post_password_required’, ‘wpse406803_whitelist_author’, 10, 2 );
You can retrieve the author page URL for any user by their user ID using the WordPress native function get_author_posts_url(). Combining this with get_users() to retrieve an array of users, you can create an author list in pretty much any way you like! Below is an example of the usage of get_author_posts_url(), displaying a link … Read more
If you’re using an author template there’s absolutely no need to setup(set) the author query parameters, they’ll be setup ready in the query object present on the author page.. You could additionally avoid the need to create numerous queries(one per category currently), by iterating over the query you have, extracting the categories, and storing post … Read more
I have modified WP_LIST_AUTHORS to paginate. I don’t know if its very sexy, and seems to require some sort of Caching plugin otherwise this particular page can start to load pretty slowly. The full code of my paginated function is in this thread: Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate) … Read more
Hi @Pwn: Add the text “Plugin Name:* in front of the text “Author Endpoints Example.” You may need to remove the leading asterisk (“*”).
/wp-admin/user-edit.php starting on line 99. Just check the hooks and filters there and how $profileuser get’s called. (Pay attention on the switch.) 🙂
Not knowing your specific setup makes this pretty tricky … but here are some ideas for alternatives that might save you time: Leave it as-is If these authors aren’t actually users of the site to begin with, don’t change anything. Non-users shouldn’t be turned into users just for the sake of making search easier. Creating … Read more
I figured out a solution so I’m leaving the question up as it might be helpful to someone else. if ( ‘auto-draft’ == $post->post_status ) : $selected = false; else : $selected = $post->post_author; endif;
Free http://wordpress.org/extend/plugins/amr-users/ (also has details at http://wpusersplugin.com/) allows one to define the data in a user list and then export to csv that list.