The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
565 views

Search posts by post author name

I want to search posts publish by particular author. For this purpose I added a filter in functions.php: function wpse_29570_where_filter($where){ global $wpdb; if( is_search() ) { ...
1
vote
0answers
90 views

Change base URL of pages created by certain users

Currently on wordpress all pages are created under the base URL (example.com/{PAGE}). Currently I am aware you can change the permalink of posts to example.com/{author}/{POST} but can this also be ...
6
votes
1answer
406 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 ...
0
votes
2answers
260 views

If contributor has published 2 or more posts then show otherwise hide

If the contributor has already published two or more posts I show a maximum of 5 of them in the post-single.php using this code <?php echo do_shortcode('[latestbyauthor show="5"]'); ?> I have ...
0
votes
2answers
28 views

Show infos only to the author in the author.php

I need to be able to show some informations only to the author in his profile viewable in the front end, for istance I need to add a text under the avatar that only the author, if logged in, can see. ...
0
votes
1answer
95 views

Calling a custom profile field only it it exists

I've used this code to show custom fields if they're filled in a post using Custom Field Suite Plugin <?php if($cfs->get('whatliked')){?> <?php echo $cfs->get('whatliked'); ?> ...
0
votes
2answers
319 views

Getting list of top 10 users and sort on last name

I would like to display a list of the top 10 authors based on the amount of posts that they have, and then sort them on last name. To my knowledge, this is not trivial since the last name of a user ...
0
votes
1answer
203 views

How can I limit page parent dropdown to show only author's own pages?

I'm trying to get the page parent dropdown (in page attributes) to show only pages that have been published by the author of the current page. This doesn't seem to work : add_filter( ...
0
votes
1answer
64 views

if else for custom $curauth-> field

So I have a custom field on the author page, where a user uploads a image which will be used as a background image on their author page. I've setup up everything except I'm not sure how to setup a ...
0
votes
2answers
155 views

Author.php display profile for all types of users

I'm using wp-usersonline plugin with user links, when you click for subscribers it goes to a not found page but works fine for authors, im thinking is there a way to redirect subscribers to a profile ...
0
votes
2answers
784 views

How we can get the author ID by its Name

How can i retrieve the author id if i have its name. I have fornt end form any user can enter the author name to filter the posts by author name so after that how can i get author id. Or there is any ...
0
votes
1answer
429 views

Display custom post counts for author , not default posts

<?php global $wp_query; $curauth = $wp_query->get_queried_object(); $post_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '" . $curauth->ID . ...
0
votes
1answer
88 views

Create an Author Page on Registration

I actually want my users to have an active user page upon registration. I know that WP doesn't create an author page until the user has created a post but automatically posting something would work ...
0
votes
1answer
125 views

Inline-Table under TwentyTwelve not working

I recently wanted to add a comfortable way to automatically add users to a page within small boxes including information an an image. So I followed this tutorial an customized the code: ...
0
votes
1answer
35 views

Author Link Not Displaying

I have used this with "echo" as its outside the loop i believe to the author of the post as a link, however its not displaying as a link? <h2 class="sidebarheaders">Random Posts By You ...
0
votes
2answers
467 views

Custom size for image uploaded to custom field in user profile?

I'm using advanced custom fields and set an image upload field in user profiles. I'm using this image a few places on the website and need to set a custom size for it on some pages. If I set ...
1
vote
1answer
251 views

Allow shortcode in the author bio textarea

Is it possible to make shortcodes available in the Author bio textarea?
0
votes
1answer
231 views

Select From wpdb - Author/User Directory page

I am working on a wordpress site where I have created a directory page(authors.php) that lists all users and certain author meta. It works fine however I am trying to figure out how to only show ...
0
votes
1answer
268 views

How to make a relationship between books and authors?

I have a book category, but now I would like each book could be concatenated with the author profile page. And the tab for the author to show, in addition to text, the list of books he has written. ...
0
votes
1answer
66 views

How do I disable the “by author” hyperlink on posts?

I'm trying to disable the "author" hyperlink when making a post, but having no success. How can I do it?
0
votes
2answers
307 views

Allow Content Author to Publish, But Not Edit or Delete

I am hiring a content writer for my WordPress blog. I will be the sole blog admin. I need to define a role for this writer. I was wondering if there was a WordPress user role that will allow him to ...
0
votes
1answer
255 views

301 Redirect /author/username/ to /profile/username/

I have changed the /author/ slug to /profile/ by adding the following code in the file functions.php: function new_author_base() { global $wp_rewrite; $author_slug = 'profile'; ...
2
votes
4answers
323 views

Front-end login: Redirect user to the post they had created

Is is possible to redirect a user on front end login to a post that they have created? I have the form below on the front end which works great to log people in but doesn't quite achieve what I want. ...
0
votes
1answer
254 views

How to check if commenter is the_author?

What's the best way of checking if my commenter is also the author of the post that he post comment on? I know there's a css way (.byauthor), but how about PHP? How to compare post author with ...
1
vote
3answers
3k views

Display edit link if post author is current user

I am creating an author.php page and listing all the posts from an author. Although admins can see the posts' edit links i want to echo the link if logged in user is the current user for example if ...
0
votes
1answer
350 views

Get Comment Author ID on the fly while posting

I am adding custom data to custom table while author posting a comment. Please find my code in my own answer here http://wordpress.stackexchange.com/a/85109/9821 Now I want to add one more column of ...
1
vote
1answer
536 views

Display posts from an author using search parameters (not author template/query_posts)

Is there a way to retrieve a list of all the posts by an author using search (example: ?s&author=xxx)? I can't use query_posts or author template (don't ask why, take it as a condition). And it ...
2
votes
1answer
341 views

Let user edit his own comment

can I allow user to edit his own comment (without, username, url, or mail) on front-end. For example simple form on custom worpdress page with his comment and submit button. Thank you all in advance! ...
0
votes
1answer
50 views

how can authors to define custom pages?

I have a options page and i use this code. I want this, I add author id on sometext field (e.g 3,2,5,11 ) and my author.php redirect custom author page. My author.php <?php $post = ...
2
votes
1answer
134 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 ...
1
vote
1answer
262 views

Pagination 404 errors for author posts query on author.php

I'm trying to query all posts by an author and paginate them on the author.php page. I've tried messing with the WP default blogs per page settings and that doesn't help. I've looked at other posts ...
0
votes
1answer
93 views

Show last post of employee in his profile page

I have built a wordpress theme in which I have listed employees of the organization via custom post type. And I am displaying each employee via custom post type. The employees listed are authors in ...
1
vote
1answer
236 views

Make user as Default contributor for all Blog Posts

I need to get a different requirement, where a particular user need to set as default contributor. I'm not sure whether wordpress actually makes a user default. But for now i need to make a user as ...
0
votes
1answer
239 views

Is there a way to input different rel=author and rel=publisher attributes for a WP blog w/ multiple authors?

I'm really trying to find a way or find a plugin (that works) that puts in different rel=author and/or rel=publisher attributes for a blog with multiple authors. That way, in a Google SERP, an ...
2
votes
1answer
102 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= ...
0
votes
1answer
117 views

How can i list random author?

Im listing current category of all author list but I want to list random author list from current category. I was try 'order' => 'RAND', RAND code its not worked. My Code: function ...
0
votes
1answer
497 views

Author's Id from wp list authors function

I'm new in wordpress. I want to display all author list with its ID. I'm using wp_list_authors function but didn't get any author id from the author list. So, How can I get Author's ID in listing of ...
1
vote
0answers
20 views

Author Pages For Custom Post Types [duplicate]

Possible Duplicate: Refine custom posts by author I need a way to display author archive pages for custom post types. I already know how to include custom post types into the default ...
0
votes
3answers
856 views

Getting author URL outside the loop

I am trying to get author information in my header.php. This is what I use to display the name and it works like a charm: <?php $author_id=$post->post_author; ?><?php echo ...
1
vote
2answers
514 views

Query to return maximum of one post per author

We are introducing a "featured author" area on our site and would like to display the most recent articles by a select group of authors. However, we only want a maximum of one post per author to ...
1
vote
1answer
278 views

No authors in change author dropdown

I have added a custom post type "Review", and a custom role "Reviewer". The issue is when logged as admin I take review which current author is admin and I want to change author to a Reviewer I have ...
2
votes
3answers
151 views

Post author is changed to admin after his post is modified by admin

I am writing a plugin which will enable to write posts from front-end. Those posts have to be checked by admin before published. Now if admin edits the post or publishes the post, the post author is ...
0
votes
1answer
67 views

Display all authors in a theme template

I was having an issue the other day and successfully got a very good answer which helped me alot achive what I wanted. this is the post which I created and have all the correspondence: ...
0
votes
2answers
1k views

get_the_author_meta not working

So I have this website that I am building and I am using get_the_author_meta to display various information about the user / author including user image. I added a function in my functions.php which ...
6
votes
2answers
285 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 ...
2
votes
2answers
397 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: ...
0
votes
2answers
238 views

How can I manage and limit disk usage for each author?

I want display and limit disk usage for each author and be able to manage disk usage as an administrator. Example: author1: disk space is 20Mb; if they uploaded more 20Mb the upload button (in media ...
0
votes
3answers
377 views

Can't change author to myself after post published

I am having this weird issue wherein if I create and publish a post, I can/am attributed as the author. However, if my editor creates a post and tries to add me as an author, I don't appear. It ...
1
vote
1answer
287 views

Author bio Social Links

I'm using simple code to show user social link in author bio. in functions.php <?php function add_remove_contactmethods( $contactmethods ) { // Add Twitter $contactmethods['twitter'] = ...
1
vote
0answers
59 views

Advanced author permalinks

I'm trying to build permalink structure for author archives that would allow me to display different custom post types posts in 'subpages/subarchives' of author archive. So the idea is to change ...