Questions tagged [author]
'Author' in the WP context can refer to two different things: the person who has written a certain post/page or the role a user has.
873 questions
1
vote
1
answer
181
views
How do you set up a WordPress blog with multiple authors to allow something like StackExchange's "community wiki" feature?
I'm thinking about having a blog with multiple authors. In the WordPress Roles documentation, authors can publish posts but only edit their own and not posts by other authors, which is what I'm ...
0
votes
1
answer
362
views
Author template help. How to check if field exists in the profile?
I'm coding my author template.
I want something like this
<?php if(Author filled about me)) { ?>
<div class="title">About me</div>
&...
4
votes
3
answers
2k
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?
0
votes
1
answer
541
views
Improving Co-Authors Plus Plugin [closed]
I've been using the Co-Authors Plus plugin for assigning multiple authors to posts. The authors are very particular in the ordering of the names on the public-facing side of the website so I need the ...
0
votes
2
answers
1k
views
author slug in the backend
hi and thanks for reading
i try to grab the authors slug in the backend.
get_the_author_meta( 'user_nicename' );
is empty.
i tried to google this issue, but cant find any concrete info on how to ...
1
vote
1
answer
1k
views
Is it possible to get_terms by author?
I get terms from all my posts with get_terms,
$tags = get_terms( 'mytags', '&number=5&orderby=date&order=desc&hide_empty=1' );
foreach ( $tags as $tag ) {
echo '<a href="'....
0
votes
1
answer
1k
views
wpdb->get_var - count author posts, meta value
In an author.php template, i count the author post in a custom post type with $wpdb->get_var,
$post_author = $curauth->ID; //author id
$count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->...
0
votes
1
answer
2k
views
pagination in author.php template returns 404 error
Hi to the community!!!
I need some help with pagination in author.php template.
I have pagination working in all my loops except in authors.php that i get a 404 error.
In my settings/reading i have ...
14
votes
3
answers
24k
views
Echo author ID in author.php
This is probably a super simple question.
But how do I echo the ID of a user on author.php?
I've tried
the_author_meta('ID')
But it didn't seem to want to work. I want to echo it at the end of a ...
5
votes
1
answer
3k
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 ...
0
votes
1
answer
433
views
Get author total post votes from post meta
In author.php, i have the list with the posts written by the author.
I'm trying to get the total number of votes, from the author posts.
All posts have a post_meta with a numbered value. i need to ...
1
vote
1
answer
3k
views
How can I include author (their archive page) in search results?
How can I include author archive pages in the default search results?
For example if I have an author name Billy Joe and I type his name into the search box a link to his author archive would display....
24
votes
3
answers
19k
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
2
answers
10k
views
Permalink to user profile
How can I retrieve the permalink to a user (author) profile dynamically outside the loop by ID?
an alternative to the_author_link(), but for outside the loop.
Example:
get_author_link($user_id);
0
votes
1
answer
355
views
Query posts in a category and include only one post per author?
I'm attempting to list posts from a category (a random selection). However, I only want to display one post per author. Thoughts? Appreciate the help.
0
votes
1
answer
559
views
Clean links in: the_author_meta('description')
I need to clean any links returned from the_author_meta('description')
The code I use is simply that:
<p><?php the_author_meta('description'); ?></p>
I Searched old question but ...
1
vote
1
answer
320
views
WordPress comments on users profile
I have a profile page and I need to make a comment system on it. The comments system should work exactly the same way as standard WordPress comment system, but instead of posts it should work with ...
1
vote
1
answer
717
views
Allow an editor to change the author
I am using WordPress multi user and have a set of users set up as Editors who wish to ghost write for another user who is an author.
How can they change who the author of the posts is without the ...
0
votes
1
answer
67
views
Authors posts on a author created page
Any suggestions/ideas on how to get posts made by certain author to be displayed on a page that same author has created without using author.php?
To clear this up a bit, I have a site where author ...
0
votes
1
answer
350
views
Don't send notification if author comments his own post plugin help?
is there any way to set an IF statement, that If the author of the post commented or replied on his own post that the wp notification is not sent to him, only if a different user comments he would ...
0
votes
2
answers
14k
views
Get avatar of the logged-in user in Wordpress
How can I get a user avatar to display in the header of my WordPress site? I've tried:
<a href="<?php echo get_author_posts_url($post->post_author); ?>" title="<?php the_author_meta( '...
1
vote
1
answer
226
views
Creating author profiles with extra fields and exporting that data?
I'm trying to find a way to let my subscribers sign up to my site and enter details in their author pages to confirm their attendance at an event. In order to create the additional fields, I've been ...
2
votes
2
answers
1k
views
Is it possible to search authors by profile field?
Yeah, is there a way to add a search function that only searches through author profiles?
For example, if someone is searching for authors called John Smith, is there a way to have a search form that ...
9
votes
2
answers
8k
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 ...
0
votes
1
answer
1k
views
Guest author's post not display in author template
I am using this filter to display guest author on post, but i want guest author's posts to appear in the author.php template also.
This is my guest author code (inside functions.php).
<?php
...
1
vote
2
answers
2k
views
Comments do not respect display_name setting, how to make plugin to overcome this
When I post something on Wordpress, it's posted with my display name. However if I change my display name, posts posted by me will be updated with the new author. Comments will stay with the old name....
1
vote
1
answer
3k
views
How to link avatar and nickname to profile
On the single post page I want to link the avatar function to the author profile, but I tried
<a href="<?php the_author_posts_link(); ?>">
<img src="<?php echo get_avatar($post->...
0
votes
1
answer
162
views
How to show list authors with at least five posts published
i'm wondering if there is a way to use wp_list_authors to list only the authors with at least five (or even more, but anyway more than just one or two) published post in the blog.
Actually I don't ...
0
votes
1
answer
660
views
Change author permalink using htaccess?
The original urls for users look like /author/user-name/
Is it possible to replace login by user's id? (something like: /author/34/ (34 is user id)).
I found the solution given here, to not work for ...
1
vote
0
answers
150
views
How to filter the edit comments admin page, show only current logged in author comments [duplicate]
Possible Duplicate:
Filtering the Admin Comments List to Show Only Comments from the Current User?
I am trying to get the edit-comments admin page to only show comments for the logged in author. ...
1
vote
1
answer
707
views
Set default post author to none on new post
On a large multisite install with 200 authors I need the author on new posts to default to none.
I unset the post_author div and moved it to the publish box (where it should be anyway) and wrote a ...
-1
votes
1
answer
2k
views
Replace author with custom field in feed
I'm doing some customization on a theme that was previously written by someone else. Rather than use multiple user accounts to assign articles, they created a taxonomy for the custom author name(s) so ...
7
votes
3
answers
11k
views
Possible to search by author name with default WordPress search function?
I realize improving WordPress's search function is a huge can of worms, but the ONLY additional thing I need it to do is to show results when I search for an author's name.
For example, if we have an ...
0
votes
1
answer
3k
views
Prevent 404 of Author pages without posts
How do I prevent author archives without posts from 404ing?
0
votes
1
answer
1k
views
List ALL posts by author on author archive
I'm having trouble setting up an author archive. I've come up with a few different loops, but I can't seem to get them quite right. I just want it to list all posts by the current author.
This shows ...
1
vote
2
answers
7k
views
Show selected value in a drop down menu
I have a multisite setup and I am adding some additional information fields in the profile edit screen in my theme's dashboard. I am primarily using text fields however I have a drop down selection ...
2
votes
1
answer
793
views
Wordpress Author Page
Whenever I click on the Author link, I get redirected to the home page. I've set up the author.php page according to the instruction on codex, but still no luck. Does anyone have any other ...
0
votes
1
answer
286
views
Restrict Search Results to Post Author
Is there a way to restrict search results to only those posted by the logged in user? I have a front-end form the user fills out.
Every user has a front-end dashboard and is able edit their own ...
0
votes
3
answers
1k
views
Commentlist: bypostauthor problem with children list
I have a rather annoying problem with my commentlist. After trying out a lot and playing around with the CSS stylesheet I don't think this is a CSS problem anymore which is why I decided to post here ...
2
votes
2
answers
12k
views
How to link to the current User/Author Profile page?
Is there a way to link to the authors profile page?
At the moment i can access the authors profile by visiting the url like this:
http://mysite.com/?author=1
Is there a function that i could use to ...
1
vote
1
answer
10k
views
How can I show wordpress posts based on author?
I'm working on a site that will have 6 authors. Each author will have their own page that will only show their posts.
what is the best way to handle this?
I would like to do by creating a page or ...
0
votes
2
answers
395
views
What does the class look like that is returned from WP_User_Query?
$wp_user_search = new WP_User_Query( array( 'role' => 'author' ) );
$author_list = $wp_user_search->get_results();
foreach($author_list as $author)
{
// author properties?
}
Can you point me ...
0
votes
3
answers
2k
views
How to let authors only see website stats for their posts?
Is there a way to show each author website stats, just for the posts that they have published?
I run WP as a directory service (1 post each) and thought it would be handy for authors to be able to ...
5
votes
5
answers
5k
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 (blog/...
0
votes
2
answers
931
views
Removing "HTTP://" From the_author_meta?
By default WordPress prints http:// in front of URLS users add in their profile, which are called using the following code:
<?php the_author_meta('user_url'); ?>
Could somebody provide me the ...
0
votes
1
answer
141
views
Listing Authors - URL Formats [duplicate]
Possible Duplicate:
How do I amend the fixed “author” part in the URL?
Hullo,
I'm needing to have custom URLs for authors so for example mysite.com/team/johndoe would be the eventual ...
0
votes
1
answer
192
views
trying to add a author value in wp page links?
function wp_link_pages_titled($args = '',$name,$author) {
$defaults = array(
'before' => '<p>' . __('Pages:'),
'after' => '</p>',
'link_before' => '', ...
0
votes
1
answer
213
views
Want to add a custom author link to a single.php
I want to add a custom link to linkedin near author name. It should be very easy if it would be only one author, but now it's not. So, I have to add something on all single.php and somewhere the real ...
0
votes
1
answer
372
views
Authors to be able to customize their author pages?
I'm trying to implement a sliding control panel where logged in users can change background colors, fonts, etc. the point being that they should only be able to do it on their own author pages, ...
0
votes
1
answer
46
views
Editorial Process
Now I've never really used Wordpress with more than one author and it's usually been myself so I've followed no editorial process, but with my new site, I'm looking to add a handful of users to the ...