Replace Gravatar with img URL for avatars

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

Get current custom user taxonomy

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 }

Remove /author/ from the author profile url

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

Only display authors who have posts

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

Limit number of posts a user can make per minute?

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

Multiple authors for single post without plugin

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)