The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
121 views

edit comments capability for authors

I am using wp site where registered users have authors roles. I want authors to have permissions to edit their own comments. Now only admin user have capability to edit comments and even editors do ...
0
votes
1answer
142 views

Get Author for Single Post in Custom Post Type

I have looked high and low for an answer to this question and all I keep finding is how to make an archive page that list all authors and their post (including cpt's). I've tried to adapt these pages, ...
0
votes
1answer
126 views

How to 'If Author' Comments Check

I would like to add extra markup to a comment made by the site admin/post author. Is there a check for this and how would I add it to my code below? Basically, if the comment is from the post author ...
0
votes
0answers
14 views

Security: How to disallow viewing/browsing by author? [duplicate]

I've already inserted htaccess code to disallow searching for users by numeric id. However, one can still manually input a user name to view/browse by author, e.g. http://mywpsite.com/author/peter/ ...
0
votes
0answers
8 views

Redirect to correct author template based on author role [duplicate]

I have two author templates, one for normal users and one for special users. Special users are those with user role 'special', so when someone wants to view their author page, they need to use the ...
0
votes
1answer
52 views

Custom Post Type Author Array Problem

I am trying to create an author.php page that calls custom post types by the author appearing on that page. My problem is that when using the code below -- which filters for the post type 'video' -- ...
0
votes
1answer
44 views

Author Page List - change to show authors instead of not subscribers

I am trying to change this code in my Authors List page template $all_users = get_users(); $allowed_users = array(); foreach ( $all_users as $user ): $wp_user = new ...
0
votes
1answer
115 views

WP Query get posts by specific author IDs if one of several logged in authors

I have a custom template page where posts are shown from authors 1,2 and 3. <?php $the_query = new WP_Query( 'posts_per_page=-5&author=1,2,3' ); ?> How can I use get current user in this ...
0
votes
0answers
14 views

How to prefill comment-author, -site and -mail inputs when user writes a second comment?

How to prefill comment-author, -site and -mail inputs when user writes a second comment? I think it is saved in a cookie. Are there some functions? THX
0
votes
1answer
100 views

Create a Page Template Which Displays All Posts by Current User

I would like to create a page template that will display all of the posts by the currently logged in user. I managed to find an older thread which contained this code: if ( is_user_logged_in() ): ...
0
votes
0answers
36 views

Wordpress Users not showing posts

I have a fair few authors on a wordpress blog and I'm facing a problem. In the backend I can list all authors and it shows their post counts -> But then when I click into this number it is telling ...
0
votes
3answers
53 views

obtain the author id given the post id

If $a contains the ID of a certain post, how can one obtain the corresponding author ID? I've tried with $b = get_post( $a); $c = $b->post_author; $d = $c->ID; but it does not work.
0
votes
0answers
104 views

Link to Author archive from Navigation Menus in dashboard?

I'd like to display a grid of authors on my site showing the name of the author and their avatar. The tricky part is, I'd like to be able to control this from the Menus page in the dashboard so I have ...
2
votes
1answer
184 views

Limit number of posts a user can make per minute?

So I found the solution to limiting a number of posts a user can make per day but not per minute. Here's an excerpt from the code I found on ...
1
vote
2answers
3k views

get post author id outside loop

I need to place in post edit dashboard metabox with post author e-mail (or other user meta fields). So it can be edited when admin reviews this post. $meta_id = get_the_author_meta( 'user_email', ...
0
votes
3answers
775 views

How to get author's name by author's id

I want to show recent posts like this. <ul id="recent-posts"> <?php foreach( wp_get_recent_posts() as $recent ){ ?> <li> <a href="<?php echo ...
0
votes
1answer
162 views

How to show author's avatar in the post meta data with plugin `user-avatar`

I'm using user-avatar, and I want to show user icon in the post meta data. http://wordpress.org/plugins/wp-user-avatar/ I'm writing like this. <?php the_author_posts_link(); ?> <?php echo ...
0
votes
0answers
136 views

Wordpress redirects mywebsite.com/author/admin to mywebsite.com/wp-admin

I got my self-hosted Wordpress installation, with a nice theme implemented. For writing blog posts I'm using the only user of the website, called "Admin". In my case I only have one author for my blog ...
0
votes
1answer
63 views

Filter posts by author selected in page

I've inherited a Wordpress project, and my client has a new feature request. For a "portfolio" page template, they want to be able to select an author, which I want to add to the $args in my ...
0
votes
1answer
12 views

Personalized Author Area

I have most of a site together that is set up to allow people to register as authors and post stories. I had originally suggested we use a form and have the client create the post, since he also ...
0
votes
1answer
156 views

Display more than 10 posts on author.php file

it seems that there are only 10 posts being displayed on author.php file. The theme I'm using have just this in author.php file:- <?php while ( have_posts() ) : the_post(); ?> <?php ...
0
votes
1answer
138 views

Get latest author posts inside the loop

I have a wordpress theme which needs to retrieve the latest 3 author posts which is simply straight forward but I have ran into a sticky problem. Because I am calling this from already within the: ...
0
votes
1answer
18 views

How to get links to user and tag by its name?

For example i have the name of user or the name of tag. Is it possible to get direct link to the author or tag? I need something like get_permalink for posts.
0
votes
1answer
15 views

Unfortunately removed myself as plugin committer

Unfortunately I removed myself as plugin committer. I was only committer of my plugin. So that, I couldn't find any options to add me back again. What can I do now? Please Help.
0
votes
1answer
49 views

get post count for related author

I'm trying to use the code below to obtain the number of custom posts the author of a post has published. function count_user_posts_by_type( $userid, $post_type = 'artistblog' ) { global $wpdb; ...
0
votes
3answers
517 views

How to give capability (publish contributors posts) to author role?

I am not a PHP programmer, just a simple WordPress user. How can I allow author role to allow publication of contributors posts? What's the technical name for this?
0
votes
0answers
78 views

Change the Author name to a custom field?

In my wordpress backend, is there a way to change the author metabox to display a custom field instead of the user's display_name or username? For example, all our users have a custom field ...
2
votes
1answer
40 views

What is the difference between user_description and description?

In the codex page for the_author_meta, the list of fields available for the function lists both user_description and description. What is the difference between the two?
0
votes
0answers
49 views

Link Comment Author to Author Page in WordPress

Normally, when someone comments one wordpress blog, author link shows their link if set it via profile. i want all the author of my blog, when they will comments anywhere, people can click their name, ...
0
votes
0answers
96 views

Set the limit to allow author when make post!

I would like to ask something here, The question is, is there any way to set the limit of post that an author can post? For example, I have a few authors on my site, but I want to allow each of them ...
0
votes
1answer
325 views

Only display authors who have posts

I am using the code below to display all authors and their posts (in a custom post type called "publication"). This works, however it also lists users who do not have posts. How can I adapt this code ...
0
votes
1answer
24 views

Link to Authors blog posts

I am trying to create a link in my template that allows the user to see there own blog posts the code that i am using is <li><a href="?author=<?php the_author_ID(); ...
0
votes
1answer
116 views

Send message to author without showing email address [duplicate]

I'm trying to find a way to send via a simple form a message to an author (from frontend, everyone can message) without having the author email address visible in html. Do you know if there is a ...
2
votes
2answers
491 views

Add rewrite endpoint to author page + pagination

I want to add a new endpoint to the author page, so that the URL looks like this: http://example.com/writer/username/articles So far, I have: Changed the author base Added a rewrite rule Setup ...
0
votes
1answer
56 views

(resolved) How to show author page link

I have the following code: /*Get number of entries*/ function get_entries_num( $id ) { $count= count_user_posts( $id ); if ($count == 1) { return ...
0
votes
1answer
136 views

Allow Google crawler to crawl specific Author pages

I have a WordPress website with thousands of registered users. For each user a profile page is created. Most of these pages are low quality because most users do not fill their profile with ...
0
votes
1answer
123 views

Show a custom field instead of username in the backend author area

I'm building a new WP site with about 1200 authors(which are actually companies, pulled from my client's existing site), each attached to at least one custom post type. My problem is the admin(our ...
0
votes
1answer
46 views

If no author posts, echo out some text

I have this piece of code to show the author posts of the author of the current post, but I want to make an if statement, if no posts then echo out some text. I have now this but it do not work (above ...
0
votes
0answers
54 views

the_author_meta not resetting

I'm looping through posts normally. I want to display the author ... simple <?php the_author(); ?> gives me "Patrick Daly". Nah, I just want the first name, so I use <?php the_author_meta( ...
2
votes
1answer
91 views

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 ...
0
votes
2answers
99 views

printf, translation and the_author_posts_link()

For some reason the following code is not displaying correctly on the frontend of my site - <?php printf( esc_attr__( 'About %s', 'textdomain' ), the_author_posts_link() ); ?> Instead of ...
0
votes
1answer
156 views

How to create custom authors links

I would like to create custom authors links that lead to the page specified by the author. Instead of http://example.com/author/example for example http://facebook.com/authorexample. How can I do ...
0
votes
2answers
1k views

the_author() not working outside the loop

I have the following code on index.php and I want to include this line of code (bellow) to display author info on top of the loop. <?php include 'author-top.php'; ?><!--author--> I ...
0
votes
0answers
83 views

Custom Post Type supports author

I am using 'author' in 'supports' array for my 'custom post type', that shows a list of all users of the site on add or edit post screen to assign author for the post. But I want to filter that list ...
0
votes
1answer
100 views

Remove author bio from posts of a specific author

I am trying to find how all posts of a specific author will appear without the author box, while all the others authors posts will have their author boxes. Can somebody help me with this?
0
votes
1answer
96 views

Guest Author - How to modify my custom function code if the guest author URL will follow a particular pattern/format?

Based on code the awesome G.M. provided in an earlier question (Use Custom Fields to Create Guest Author Link), I now have a custom function that uses custom fields to support guest authors. The code ...
0
votes
1answer
821 views

Guest Author - How can I use custom fields to create guest author link?

We are posting articles authored by guest authors. The guest authors will not be logging in to the site, and we don't want to create users for these guest authors. We are also not interested in any of ...
0
votes
2answers
319 views

How to Change Author Posts URL

How can I display an authors archive by author id instead author slug like http://example.com/author/author_slug/ to http://example.com/author/123/
1
vote
1answer
173 views

Remove /author/ from the author profile url

I'm trying to figure out the best way to remove /author/ from the profile URL of my users. I tried using the method in the link below and although it worked, it also prevented me from accessing any of ...
-3
votes
2answers
104 views

Query parsing only author ids

I need array only all author ids from the loop, each one only once if possible and out of all posts in the loop. Any suggestions?