Change author base slug to user role
I think the plugin: https://wordpress.org/plugins/edit-author-slug/ does exactly what you need.
I think the plugin: https://wordpress.org/plugins/edit-author-slug/ does exactly what you need.
Unless I have misunderstood your question to accomplish a custom gravatar to use in your theme add the code below to your functions.php or into a custom plugin. From there customize the title and the image you want to use. See screenshot below for the finished outcome. add_filter( ‘avatar_defaults’, ‘dev_designs_gravatar’ ); /** * Display a … Read more
Just use flush_rewrite_rules(); Documentation here.
I think it might take some time for the google to update this information to the search index. As far i’ve seen the older posts on my blog (multi user) show the author information in a google search. The latest posts don’t really get updated with that information. A post from Feb 2013 Posts from … Read more
Try this suggestion: $user_id = get_current_user_id(); // Get current user Id $user_groups = wp_get_object_terms($user_id, ‘user-group’, array(‘fields’ => ‘all_with_object_id’)); // Get user group detail foreach($user_groups as $user_gro) { echo $user_gro->name; // Get current user group name echo $user_gro->taxonomy; // get current user taxonomy }
Essentially, you can’t do that because you’ve overlapped the “page” and “author” sections in the namespace. See, with your setup, then given a URL like http://example.com/whatever, WordPress has no way to distinguish whether “whatever” is an author or a Page. To do this, you’d need to add a lot more code to add extra querying … Read more
The default version of the WordPress function provides the count of the default post type ‘POST’ as stated below: <?php $post_count = count_user_posts($userid); ?> For retrieving the post count based on a post type a custom function as below is required: <?php function count_user_posts_by_type( $userid, $post_type=”post” ) { global $wpdb; $where = get_posts_by_author_sql( $post_type, true, … Read more
I would begin with establishing the most friendly approach to this. I think it would be a warning after post Publish/Update button is clicked. It is possible to prevent the Edit Post screen loading if the user re-visits it within 2 minutes after the previous post is published. I don’t think that is practical though … Read more
No need to apologize, and not a basic question actually. Depending on what you actually need to achieve once you have your multiple authors assigned, there are several ways to do it: Using tags or equivalent custom taxonomy If you just need to display “authorship” for any given post, you could create a custom non-hierarchical … Read more
It seems that you have to add the capability yourself. You can get the necessary code for that in How do I create a custom role capability?. You can also use Members Plugin which seems to do that for you(I haven’t used it myself yet). I think this discussion here will also help you to … Read more