The author tag has no wiki summary.
6
votes
2answers
2k views
How to check if a user (not current user) is logged in?
I need to display the online status (online/offline) for each author page (custom author page template).
is_user_logged_in() only applies to the current user and I can't find a relevant approach ...
5
votes
1answer
82 views
Display Random Author with Details in Sidebar
PHP newbie here, recently decided to have a stab at cobbling together a kooky little 'Random Author Spotlight' feature into my current WordPress theme. I'm almost done, but I've hit something of a ...
4
votes
2answers
143 views
WordPress Internal @ Mentions
I'm looking for a way to link to author pages within one WordPress install simply by putting the @ symbol in front of a person's username in a post.... just like on twitter.
Example:
If the username ...
4
votes
2answers
1k views
Override default url for author pages?
So the default url to display a list of posts by a particular author looks like this:
http://domain.com/author/{username}
I am wondering how to change the 'author' in that url to something else?
I ...
4
votes
3answers
388 views
How can I publish a post with two or more authors?
A friend and I have a Wordpress blog and we want to be able to publish a post with more than one author. How can I do this?
4
votes
3answers
2k views
How to use tinyMCE for user “biographical info”?
I would like to provide our WP users (authors) with a tinyMCE editor instead of standard textarea for their "Biographical Info" on the Profile page.
I have spent a lot of time searching online for ...
4
votes
2answers
2k views
Extend WordPress search to include user search
There is many a WordPress plugin out there that enhances WordPress search but I have yet to find a plugin that will add user search.
Search Everything used to have the functionality but was removed ...
4
votes
1answer
1k views
How can HTML be allowed in Author Bio?
Is there a way to prevent WP from stripping the HTML from the author bio? I need it to keep my paragraphs.
Thanks in advance! :)
Edit - Although this question has been answered, I will clarify that ...
3
votes
4answers
813 views
Prevent Authors from viewing each others Posts
I am setting up a site where there will be multiple users as Author, the owner doesn't want the authors to be able to view each others posts, since there are some meta fields with information he'd ...
3
votes
4answers
1k views
Select subscriber as author of post in admin panel?
I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
3
votes
2answers
946 views
Wordpress: How to get the current logged in author page URL?
Is there a way to display, via a PHP function, the author posts link (myblog.com/author/jason) of the current logged in user ?
In fact, I would like to display, for every logged in user, a "My ...
3
votes
4answers
513 views
If Else Gravatar Author Picture
Ok so i have added a custom field inside of the WordPress edit profile field where a contributor and above can add a custom image if they do not use gravatar. Now i am trying to write a if else ...
3
votes
2answers
76 views
What's a good way to put authors into groups
I have 7 companies contributing to one blog, and each company has 3 authors. I'd like to show all posts by all authors of one company. Is that possible?
3
votes
1answer
1k views
Can I set a default dashboard layout for all users?
I'm creating a multi-author blog, and have recently added the "Dashboard Notepads" plugin. This allows me to add 1 to 3 dashboard widgets which I can write custom notes in, like news or notices. Is ...
3
votes
1answer
597 views
How to add author details in the post sidebar?
I would like to add author details in the sidebar instead of bottom of the post?
Can anyone tell me how to do that?
As of now i'm using like this in the loop
<?php $curauthor = ...
3
votes
4answers
2k views
the_author_posts_link() for authors of custom post types
I have both regular blog posts and a custom post type in a blog. The page template shows the author posts link. If you click on that link for an author that has authored some posts, that page ...
3
votes
1answer
734 views
Help to condense/optimize some working code
WordPress by default shows ALL posts to users who are Authors. I wanted Authors to only be able to see their own posts so I came up with the following code which works well.
Any suggestions to ...
3
votes
1answer
1k views
Diplay a registered user profile page
I have a website where users can register, login and their edit profile, they can comment but not post.
What I am looking for is a way to display a user profile page (where I display the gravatar and ...
3
votes
2answers
625 views
Restrict the Number of Posts an Author can Publish (over time)?
I'm thinking maybe limit the number of posts a user can make in a given period of time. (Say a user can only publish 1 post per 5 minutes?)
Is there such a plugin?
3
votes
1answer
398 views
the_author() returns empty string
I have created a page template for the front page of a site I am building using WordPress. I am displaying the 3 latest posts on this page and all works fine except for the display of the author of ...
3
votes
1answer
527 views
How to set up sub-categories for author pages?
I am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc).
I know that ...
3
votes
2answers
68 views
How to modify author base slug with groups and slug to use nice_nickname?
After reading the following suggestions from Jan Fabry regarding URL rewrite and the author slug I took the challenge in combining both solution in one.
Change author base slug for different roles
...
3
votes
2answers
67 views
How to develop a community feature in the dashboard for multiauthor site
I run a Wordpress site that has more than 300 authors. Is it possible to create some type of community in the backend (dashboard)? Ideally, a space where the authors can discuss with each other in a ...
3
votes
1answer
177 views
How to show list of posts by author and category?
Let three categories and their IDs:
cat1 = 1 (parent)
cat2 = 2 (child of cat1, parent of cat3)
cat3 = 3 (child of cat2)
Let each category has 3 posts, they are: post1, post2, post3.
And each posts ...
2
votes
1answer
4k views
How to get post author name by its ID inside a function?
i'm trying to get the author name using the "the_author_meta" function. After doing that I need to pass the value inside an array and return that with "json_encode".
Let me show:
$autor_id = ...
2
votes
2answers
134 views
Different permalink for posts and authors
I tried to avoid ask this question, because I think that must be simple, but after long hours trying to get an answer I cant achieve it.
I am trying to get a permalink structure like this:
...
2
votes
1answer
303 views
Find most recent authors
What I'm looking to do it get the 16 latest posts from 16 different authors. In other words there would be the 16 latest posts, but no one single author would have more that 1 post on the page.
The ...
2
votes
5answers
3k views
Change the Author Slug from Username to Nickname
Hi to the community,
is it possible to change the default username slug to nickname if is available?
By default the url is something like: http://domain.tld/author/(admin) ,
is it possible to ...
2
votes
1answer
495 views
Woocommerce: assign an “author” to a product
I'm developing my first theme for woocommerce.
I need to be able to have "authors" (really "designers") assigned to woocommerce products. Is that feasible? I was thinking of using the wordpress ...
2
votes
2answers
264 views
Comment Author Name In Reply Form
I have enabled comment replies in my blog. Lets say there is a comment Nick has written... when I'm gonna reply, I want to display a message "Replying to Nick" in the reply's form header. Anyone knows ...
2
votes
1answer
154 views
Is there a way to prevent author change when editor/administrator edits a post?
As an administrator when I change or edit a post of an author (for example add a category through quick edit) the author of the post changes. We do not want this to happen. Is there a way to prevent ...
2
votes
2answers
2k views
How To Remove The Author(s) From Certain Posts
There are certain posts on the website I'm developing, that don't need the author(s) by-line. (such as press releases)
Is there any method, that allows me to remove the author (and co-authors) for ...
2
votes
1answer
164 views
Adding more pages to author pages
At the moment I have the following code for changing the author_base slug.
/** ADD REWRITE RULES **/
function change_author_permalinks() {
global $wp_rewrite;
$wp_rewrite->author_base = ...
2
votes
2answers
877 views
Change author permalink
The original urls for users look like /author/login/
Is it possible to replace login by user's id?
In my dream urls should become to /users/34/ (34 is user id).
Thanks.
2
votes
1answer
665 views
Is it possible to set/override default the_author_posts_link to login name?
the_author_posts_link is so handy. But is there now way in WordPress to set/edit the default display name for all new authors? (I know you can manually edit per author). I'd like it to be user_login, ...
2
votes
2answers
156 views
How to control template resolution if both Author and Category filter in place?
The following url resolves to the category template:
http://localhost/author/myusername/?category_name=somecategory
I have a category-somecategory.php template and just a generic author.php template. ...
2
votes
1answer
59 views
Set a User as Author of all 'New Posts' posted
An Author 'XYZ' is need to be set as the Default author of all New Posts. Irrespective of the actual Author posting the content, the post should be saved by this author 'XYZ'.
Is there a Plugin or ...
2
votes
1answer
95 views
Display posts with author in the url with custom post types
I'm having a really difficult time with this.
I have a multi-user gallery site. Each author has his own page that lists the author's posts (this is a custom post type).
I have made it so that the ...
2
votes
1answer
408 views
How to check current URL for endpoint in a template file?
What's the best way to check current url for endpoint in a template file? I have a plugin that creates endpoints in author.php... so now i'm trying to check in author.php so that only certain code is ...
2
votes
3answers
2k views
More posts from the current author
On a multi author WordPress blog I need to show a list with more posts from the current author. The list is inside the Loop, so I can use <?php the_author_meta('first_name'); ?> <?php ...
2
votes
2answers
98 views
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 ...
2
votes
1answer
129 views
How to set author for post AND post attachments
I have multiple author accounts on one of my WordPress installs. Often I will create a post, and set the author to be a different account. However, when I upload images into that post, their ...
2
votes
1answer
177 views
Display Author role in archive or author page
I want to display author role on archive and author page outside loop I found this code on stack overflow and it works fine within the loop
function get_author_role()
{
global $authordata;
...
2
votes
1answer
110 views
Author must complete profile info before they can publish a post?
I am creating a real estate site where user info is essential part. The author info need to display under their post so that the visitor know how to contact them. Thus, the contact info in profile ...
2
votes
1answer
530 views
get the username of a user in his author page
I've implemented this code inside my author.php file, in order to display the username of the author:
<?php printf( "<h4>The blog of<a href='" . get_author_posts_url( get_the_author_meta( ...
2
votes
1answer
354 views
Editing the loop for Author pages
I was wondering if anyone can help me out. I am looking to remove the_content part of the loop on my author pages only. So basically, I just want a list of the author posts with only the title and ...
2
votes
1answer
309 views
how to assign more permission to wordpress author
I have installed jw player plugin so that users of my site could upload their videos. Right now, admin can only see jw player menu on the admin panel and he can only upload videos and use this plugin. ...
2
votes
1answer
207 views
Users roles, make a page belonging to multiple users
I have a website with a lot of users.
They are all editor (with same custom roles). They can add page and post, and edit only their own page/post.
But some users need the ability to edit some ...
2
votes
1answer
396 views
Getattachment next and previous by author only
Im trying to get the next and previous attachment by the user its currently displaying, this is what I have and it works great except it gets all of the attachments instead of just the ones from a ...
2
votes
1answer
63 views
How can I list random authors from current post category?
The following lists authors of the current category.
But I want this to be a list of 6 random authors from current post category.
foreach((get_the_category()) as $category) {
$postcat= ...
