The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
218 views

Author page points to 404 error page

I am having a membership site in wordpress where there are more than 10K users. Now when the user having a single word user_nicename ( http://example.com/author/james ) try to access their respective ...
0
votes
1answer
95 views

Return one of user's post from a category in user's profile

I'm working on a site which requires requires users to submit a custom profile of sorts, and then one post in a specific category (all of that is being done through Gravity Forms and their User ...
0
votes
1answer
126 views

Exclude Authors based off date of last post

I have several writers that range from frequent to one-time writers for my blog. On my Author page, I would like to separate out writers that have not posted an article in 6 months. It would be nice ...
0
votes
2answers
832 views

list author's posts in author.php

I want to list 10 last posts of author in author.php template. I used this code: <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ...
0
votes
1answer
52 views

Create pages for authors

I have a pretty good question here. I would like to create a hidden page on my wordpress blog for each user as they are registered. I already have most of the code of what needs to be put on the page ...
0
votes
1answer
326 views

How to change image's author via a function when using GravityForms uploader? [closed]

I am wondering if there is a way to manually change the author of images. I am using Gravity Forms which sets the post author to the current user but does not set them as the author of the images ...
0
votes
2answers
259 views

Featured image for social sharing ot author archive page

Personal blog with occasional guest authors (non-commercial) self hosted Wordpress. I create a bespoke author PHP file for each author (example). I use Yoast SEO and set a default image for meta ...
0
votes
1answer
190 views

Sends out email to admin with post author

Hello i'm using this : add_action('publish_post', 'send_admin_email'); function send_admin_email($post_id){ $to = 'admin@email.here'; $subject = 'subject'; $message = "Here is ...
0
votes
1answer
218 views

All Posts Linking to Author Posts directly

I want to do "All Posts" hyperlinked to Author-Link so when user clicked All posts then user will be directed to Author's all posts, instead of "All Posts of: Author-Link" I don't want repeatation of ...
2
votes
1answer
270 views

Get the author of the latest revision

I would like to display the author (username) of the latest revision of a post from inside the loop. I tried get_the_author(), which echoes the username and $post->post_author(), which returns the ...
1
vote
2answers
569 views

Order query by post meta value

//Displaying latest post per author on front page function filter_where($where = '') { global $wpdb; $where .= " AND vipwp_posts.id = (select id from {$wpdb->prefix}posts p2 where ...
1
vote
1answer
1k views

Force display name as full name

Is there a way I can force all users display names to be Firstname Lastname or alternatively change this to be the default?
0
votes
2answers
202 views

One author not showing in Author drop down list while editing page

USER01 is not showing in Author drop down list while editing a Page if he's in the my custom ROLE "mycustomrole". If I change his role as an AUTHOR, and add the very same custom and non custom ...
0
votes
1answer
307 views

Exclude Author by ID

How can I exclude authors by ID from this: <?php //displays all users with their avatar and their posts (titles) $blogusers = get_users_of_blog(); if ($blogusers) { foreach ($blogusers as ...
2
votes
2answers
156 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
6answers
14k views

How to get Author ID outside the loop

I can't get the post author ID outside the loop to make the get_the_author_meta work. So far I've tried different approaches: 1. $author_id=$post->post_author; 2. global $post; ...
4
votes
1answer
547 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 ...
0
votes
2answers
886 views

How to get single post by one author?

I just want to get the most latest posts by an author. I am using get_posts at the moment but I notice it doesn't take an author argument, so how I can I specify my author? $args = array( ...
-3
votes
2answers
113 views

why is there an author.php

Why is there an author.php file when the same information is in the single.php? I looked at the template hierarchy and one would think that if author.php wasn't present, the single.php would come into ...
0
votes
1answer
524 views

Change the author posts link using custom user metadata

I am trying to use a custom value to be used in the author posts URL instead of the user_nicename which defaults to user_login in the pretty permalink structure. So far I managed to do that but now ...
0
votes
2answers
2k views

Display all authors and their only one latest post

I have a website with many authors and posts. I need to create a list of all authors and for each one display his latest post (not posts, only one post). This better explains what I need: <ul> ...
1
vote
1answer
227 views

Change get_current_user_id code to the author's profile

I've been modifying a long abandoned plugin project that provides a Stackoverflow inspired badge system for Wordpress. I have upgraded some of its code so it functions with the new Wordpress version. ...
2
votes
1answer
230 views

Improving a Stackoverflow “inspired” badge system to display badges in author page

I've been modifying a long abandoned plugin project that provides a Stackoverflow inspired badge system for Wordpress. I have upgraded some of its code so it functions with the new Wordpress version. ...
0
votes
1answer
60 views

Randomizing Post Links Outside of Loop - No Author or Date

I'm developing a home page that is a mishmash of a bunch of information, including a random smattering of several categories, including blog posts (category 192 in the code below) I'm obviously not ...
0
votes
1answer
291 views

List author's posts with SQL

I want display authors'posts with the code below but authors' name aren't showing. What is wrong? <? // query test $qry = $wpdb->get_results( $wpdb->prepare(" SELECT * FROM $wpdb->posts ...
1
vote
2answers
167 views

How can I add an author-box below a post?

I would like to have a box below each blogpost with information about the author. These screenshots are examples for what I would like to have: Links that could help: I've found these links ...
0
votes
2answers
1k views

Exclude some authors from query

This script list users with their last post. How to exclude some authors from guery ? <?php //List of users sorted descending by date of lastest post written by user $uc=array(); ...
2
votes
0answers
253 views

How to let a user choose an authors and save it to the database?

I have a multi-author Wordpress site which reads different rss feeds and posts them to my page. I was wondering if it is possible to make a code that would provide an opportunity to registered user ...
0
votes
3answers
972 views

Display Post Author Link above the loop

I am trying to display current post author link above the loop (before loop starts) with this tag the_author_posts_link() but it's not displaying the author post link. Anyone please help me. Edited ...
0
votes
1answer
91 views

Change Post and CPT author on the fly while publish the post

I am developing my site and require to change post author id on the fly while publishing. All post will be write and publish by admin but as content provided by different author and need to change ...
1
vote
0answers
18 views

Enable comments for author.php [duplicate]

Possible Duplicate: Commenting in user profile page? Question I have an author.php page and I need to enable comments so when other users come to that authors page they could leave a short ...
1
vote
1answer
180 views

Show different badge based upon the user role

Problem I have authors page and I need to display a different badge for Authors and Subscribers. Authors on the site have certain abilities that differ from Subscribers and I would like to display a ...
3
votes
2answers
92 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 ...
2
votes
2answers
5k views

Search by word, category, tag, author

I want to make a search page, offering search functionalities by: 1) word 2) tag 3) category 4) author Can you recommend any technique, any guideline as per how to tackle this?
1
vote
0answers
161 views

How to set post author to custom post field via front-end form?

hope someone can help. I have my WP install configured to capture posts via a front-end form. Users do not log in, which is an explicit requirement. The author should be set based on a custom post ...
1
vote
1answer
851 views

How do I create a separate page for each author?

I am working on a website where I have authors listed on a custom-made author's page using code adapted from this site: http://bavotasan.com/2011/an-even-better-author-list-in-wordpress/. When you ...
0
votes
1answer
110 views

Extracting a variable from a permalink

I used the "Edit Author Slug" plugin to change the author base to /newbase . In the functions.php file, I added a new node to the toolbar (View Profile) that when clicked points to ../newbase/johndoe ...
0
votes
1answer
1k views

Get author's first name

I am probably being a little dumb here, but can anyone point me in the right direction. I am trying simply display the authors first name as a link in my loop. But the doesnt seem to be any options ...
0
votes
2answers
1k views

How to conditionally hide author name on Single.php if category is “news”, otherwise if category is something else display author name?

I would like to be able to conditionally hide the author's name on the Single.php if the Category name is equal to "News" and otherwise if the category is something else hide it. How do I go about ...
1
vote
2answers
414 views

How to group the loop posts in a particular by author?

I have links going to category pages on a WordPress blog. These category pages show all the posts that are in that category and sub-categories. I want to group these lists by the authors. I guess ...
1
vote
1answer
434 views

How do I prefix blog post urls as mysite.com/blog/%postname%/ but allow authors to still be located at mysite.com/authors/%nicename%?

I've tried a bunch of things but cannot find a solution that works. I want my site to have the structure: mysite.com/ = homepage mysite.com/blogs/ = blog archive mysite.com/blogs/year/ = blog ...
2
votes
1answer
371 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 ...
0
votes
1answer
130 views

How can I merge two authors?

I noticed on one of my WordPress installs I have two admin authors with the same email address. Both of them have posts attributed to them. They are both for the same person, so I'd like to combine ...
0
votes
1answer
30 views

adding my posts (author posts) in menu

I want to add "my posts" to main menu. By clicking on this, each logged-in user will see his/her own posts. I don't know how the link structure should be to add on the menu.
2
votes
2answers
612 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 ...
0
votes
1answer
233 views

Display Notification Bar on Header on Certain Post Count

I want to display notification bar on header in my Wordpress theme when user submit certain number of post. I want to notify my author once they are submit amount of post. e.g. if (authorpost === ...
0
votes
1answer
101 views

Profile Field In Admin Bar

I have added a field named "Current Status" in the user profile where the users fill their information e.g. E-mail, Website etc. How can I make this field displayed only for authors and also display ...
0
votes
2answers
37 views

why do I have to use required parametres?

Why, when I want to use add_filter( 'author_link', 'foo', 10, 3 ); function foo ( $link, $author_id, $author_nicename ) {} I have to use 3 required parametres? Why cant I do this: add_filter( ...
2
votes
1answer
266 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; ...
1
vote
1answer
655 views

Author can only see own post comment and can moderate

I am trying to make things work like where author can see only them post comment in admin comment section and they can moderate as well. While admin should have all permission. I am having one code ...