Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?

I am trying to integrate both the values from an existing custom taxonomy and custom author profile fields. I would like the values to be used as the options from which an author can select when updating/filling out her profile. The below works – kind of. (Found in functions.php file) It saves to the database … Read more

Get the excerpt for a post created by the related author

This has been bugging me for ages and can’t quite get it working. I’m using the following code in my functions file to enable me to display posts created by the same author as the current single post. function get_related_author_posts() { global $authordata, $post; $authors_posts = get_posts( array( ‘author’ => $authordata->ID, ‘post__not_in’ => array( $post->ID … Read more

Show the author’s count of total amount of posts assign to a custom taxonomy term

I have assigned a custom taxonomy named Highlight to posts and I have added a term to it named Featured.  Whenever I want to feature a post, I simply assign it to featured.  To each author, I want to display their count of total amount of featured posts.  So the function the_author_posts() will display count … Read more

How to hide posts count and posts of other users from edit.php for contributors and authors

I am using wordpress latest version and running a multi author blog. When any user (contributor or author) go to edit.php, they are seeing posts and post counts of other users. I hide the posts of other authors by this code, function posts_for_current_author($query) { global $user_level; if($query->is_admin && $user_level < 5) { global $user_ID; $query->set(‘author’, … Read more