Tagged Questions
-1
votes
1answer
21 views
Echo author slug in post edit page
On the Post edit page in the back-end, how do I echo the author's user_nicename? I am referring to the author of the post, not current user.
0
votes
3answers
46 views
Show comment number per author per day
Is this possible? I've never seen it used, but I need it... I want to show for each author (if they are logged in) on their own profile page, the amount of comments they have posted today. If the day ...
0
votes
1answer
11 views
Cannot select certain authors for posts after import
I just consolidated a couple standalone WordPress installs into one Multi-site install. After importing posts into each site accordingly, I am unable to edit a post or page, and select a different ...
0
votes
2answers
16 views
Display message depending on capability outside loop
I want to display a unique message on the post (single.php) page outside the loop on author box. I want the message to be different depending on the author's capabilities. So for instance, if the ...
0
votes
1answer
35 views
Show the title of the latest post by author
I have the following function which I use to show the author name,author avatar and the author biography in a div. I need to show the title of the latest post by the author along with this. Can anyone ...
0
votes
2answers
145 views
Get all posts by post_author
I am creating a back-end dashboard where I need to show all the post assigned to current user by the wp admin.
I assign user role to Author and while creating post (as a wp
admin) just assign ...
1
vote
1answer
36 views
search posts by post author name
I want to search posts publish by particular author. for this purpose i add a filter in funcions.php as
function wpse_29570_where_filter($where){
global $wpdb;
if( is_search() ) {
...
5
votes
1answer
87 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
59 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
1answer
114 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
34 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
1answer
34 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 = ...
0
votes
1answer
57 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 ...
2
votes
1answer
64 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= ...
1
vote
2answers
73 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 ...
2
votes
2answers
137 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
86 views
Authors' Links on Homepage Not Going to Author Post Pages
This problem only occurs with the articles/blog posts on the homepage of the site, readbuzz.com.
On the homepage of the site, the author's name is supposed to link to that particular author's post ...
0
votes
1answer
126 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
46 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 ...
0
votes
1answer
80 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 ...
3
votes
1answer
181 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
268 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( ...
0
votes
0answers
46 views
Old versions of posts are displayed in listings [closed]
I just upgraded a WordPress MU site from 3.1 to 3.4.1 and now this strange thing has happened.
The user makes changes and updates a post.
The front page of the blog (and category, tag listings and ...
0
votes
1answer
136 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
633 views
How to show total view count across all posts for an author
I'm using wp-postviews to track views for posts by authors on my site. It stores the view count in the post meta field $views. I'd want to show on their profile a total count of views for all their ...
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 ...
1
vote
2answers
556 views
Get the user type of an author
I'm working on a site and I need to get the type of user the author is so I can mark it.
The idea is that if an Admin level user post something it has a [ADMIN] tag or something next to their name. I ...
0
votes
1answer
92 views
How do i use Query Posts as a widget? [closed]
I want to create a widget with the last post from a user.
It should look like this:
POST TITLE
Excerpt [...]
And i need to link the post title as a permalink to the post.
I'll also be manually ...
0
votes
1answer
727 views
Prevent 404 of Author pages without posts
How do I prevent author archives without posts from 404ing?
0
votes
1answer
186 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
1answer
3k views
How to display posts by current user/author in a custom page template?
I am a trying to create a dashboard like custom page template that list post of of the current logged in user. I've tried to find a solution on the net. but none were appropriate
3
votes
2answers
962 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 ...
-1
votes
1answer
164 views
Add author section on Author archive posts
I was looking at the section where you click on the author name on the homepage posts.
and it says the Archive posts from xxxx authors
so I thought of that while ago I found that some website has ...
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 ...
3
votes
2answers
626 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?
1
vote
2answers
542 views
Show info to author only
I'm writing my own plugin.
works like this:
function myfunc (){
$a = 'hello';
// the sentence what Am looking for:
if ( user is logged and is the author of current post / page ){
...
3
votes
4answers
819 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 ...
0
votes
1answer
137 views
Notify Author of the post if admin deletes his post and perform some function
i am working on a theme in which points are added in user meta when he does a post... it works fine but the problem is when a post is deleted by the admin then the point should be reduced and the ...
1
vote
1answer
1k views
Show author post count in sidebar - Variable
I need to display something of a mini author statistic in my sidebar on the single posts page. I'm using the PHP code widget, to allow me to insert PHP code into a widget. What I've done is run a loop ...
2
votes
1answer
398 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 ...
3
votes
1answer
406 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 ...


