The tag has no usage guidance.

learn more… | top users | synonyms

-2
votes
1answer
8 views

author.php get current id of author for advance custom field

I'm not sure why there is no result with advance custom fields. i use get_the_author_meta('ID') for other information since it's work with single.php but i want also to display the information of ...
0
votes
1answer
12 views

Display Authors in a grid loop

I currently have the following php code which gives me a list of all the current WordPress authors, including their name and avatar. <?php printf('<h1>%s</h1>', the_title()); ...
0
votes
1answer
17 views

Author Page Create Link to Page That Lists All Author's Posts?

In my author.php page, I'm wanting to create a link that sends the user to a list of all posts by that author. I thought this was a built in function of WordPress, but having trouble finding the ...
0
votes
0answers
22 views

Modify Author Pages to All Users

I have displayed user details in author page. But it works on authors only. How to make author page works for all users?
0
votes
0answers
13 views

using session var to filter author media gallery

I got a problem to solve and would like to know if I'm looking the right way to solve this. I have a site where multiple authors can upload images and they all have a profile page (author.php) where ...
1
vote
1answer
49 views

pass query string on url to filter media

I have an author page which shows all uploaded media by that author. Each media can have tag1, tag2 or tag3. I would like to add an option where I can show on that same page only tag1 media without ...
0
votes
0answers
30 views

Author archive only for custom post type

I want to create an author archive for only custom post type. This page will includes only custom posts by the author. And url structure should be example.com/portfolio/author/author-name/ I don't ...
0
votes
1answer
23 views

Return subpages of an author if the parent page was published by an other author

I just stumbled over an issue while programming my own WordPress theme and I need your help. I defined an author.php file which should display the static pages and the blog pages of a given author. ...
0
votes
1answer
28 views

Unpublish Authors With not Fulfilled Fields

I want to unpublish profiles of users that doesn't have all extra fields that I've created filled. I use a custom meta_query in a user taxonomy in order to filter those authors, and that work, but it ...
0
votes
1answer
69 views

Save buddypress xprofile data to author meta

I have created a buddypress extended profile field "description" and would like to save the data entered to the "descripion" profile field of the user (DEfault wordpress Biography description field) ...
0
votes
0answers
26 views

loop authors with permalinks to posts for custom post type

I have created a custom post type called "adoptions", I have created an adoption-page.php and a single-adoptions.php. In the adoptions-page.php I have loop which displays all the current post from ...
1
vote
1answer
28 views

List user comments in author page

I'm trying to display a list of the author comments in the authors page but it only shows No comments made. How can I list user comments in the authors page? <?php $args = array( 'user_id' =&...
0
votes
1answer
37 views

Allowing comments on author pages

I need to be able to allow users to leave comments on author profile pages. I came across another answer here that has given me a basic outline of what needs to be done to allow it: Author page: ...
0
votes
1answer
52 views

The best way to create pages like an 'about', 'contact' and etc [closed]

I develop my own theme and I need to create nice looking sites like a contact page or about me page. But I don't have any idea what wordpress template file I can use. Will I have to use page-template ...
0
votes
0answers
25 views

Proper way to set author pages at root?

I want to create landing pages for each user on my site in the same URL structure as most popular social networks: sitename.com/username But of course, I don't want to create pages for each user. ...
0
votes
1answer
108 views

Hide Author page from others

I am using author.php as an Author page. I have changed the author base slug to "profile" so a post author can view their author page at website.com/profile/name As these are basically personal ...
0
votes
1answer
66 views

Display content based on Author Custom Post type

I have 2 forms. Form A creates a new user with the role of Author and also creates an entry in a CPT called Judges. Form B creates a new user also with the role of Author and creates an entry in a ...
0
votes
1answer
82 views

Current author archive in navigation menu

I want logged-in user see her/his own author archive page link in top navigation menu,say (a link to a list of all her/his posts). What I achieved so far is this: function my_nav_menu_author_link( $...
-1
votes
1answer
135 views

Display custom post type posts first, then default posts

A normal author.php template has a single loop that displays a list of all the author's posts. I'd like another loop place just above this normal post loop that lists all author's (defined) CPT posts....
1
vote
1answer
107 views

Showing author's page with no posts

I'm building a meet the team page, which will be included all team members. I'm using the author.php file template. I have a page that shows all authors (it works with authors who have no posts). ...
0
votes
0answers
40 views

Order Authors by custom field

we just relaunched our blog and one important thing was to set up a page which shows the authors, which worked. But now my chef wants me to sort them in a specific order: there are some authors who '...
4
votes
3answers
288 views

Display Authors Comments on Profile Page

I am trying to display authors comments on their profile page (author.php), however both codes I tried seem to display everyone's comments. Also the second code is suppose to link to the specific ...
0
votes
1answer
33 views

Missing content on author archive page

I got problem when I deal with the 'author archives' pages. Initially I used default 'archives.php' from my theme. Then I add a 'author.php' page, tested on my local machine, it was ok to show the ...
0
votes
0answers
61 views

sorting posts (custom_posts) in author page

I want to sort posts (taxonomies) in my authors page, i want to sort them only by there one posts an have the right to edit them. I've try ed select elements but it shows results from search.php
-1
votes
1answer
172 views

Show woocommerce products in author archive

I've added permissions to authors to add products in woocommerce. I would like to know if there is a way to display products by current user in archives. Is this possible?
2
votes
1answer
107 views

How to make an author archive only for certain user role and show related CPT

Scenario I made a CPT where I'm taking the stakeholder's ID as a custom field. All the stakeholders are actually a WordPress' Registered User with a different role stakeholders - because at some ...
0
votes
1answer
27 views

Author page from blog post

I am looking to build a custom WordPress blog which is simple enough but I have a requirement I need to meet. On each blog post on the index.php page I want to display the authors name and image. ...
0
votes
1answer
482 views

Pagination for custom query throws 404 errors on last pages [duplicate]

I'm using a custom query to get all CPT posts for the author in author.php. I have a lot of authors and a lot of content so I'm using the wp pagenavi plugin to paginate between these posts. For some ...
3
votes
2answers
137 views

Add admin bar link to edit author

I am trying to allow my editors and admins to click to "Edit Author" as they would "Edit Post" or "Edit [Custom Post Type]" from the admin bar when they are on a page like /authors/jdoe (Note: I do $...
1
vote
2answers
518 views

How can I show a custom post type for users in the authors.php file?

Here is the code I have. It is showing 100 custom post known as campaigns. I need it to only show the current users. So author/joe should only show joe's campaigns. <?php if(isset($_GET[...
0
votes
1answer
136 views

Displaying Total Author View

I'm looking to display the total views generated by each author on their author page. I can't find any php code that works. Can anyone help? I've tried using this code: <?php $author_posts = ...
0
votes
1answer
102 views

Exclude specific user_id from args in get_comments

I'm basically using a 'latest comments' system on multiple pages where one specific user is listed as the first reply for a comment - highlighted with special CSS - and then 2-3 normal users below ...
1
vote
2answers
327 views

Conditional tag based on the role of author in author.php

Is there any way to display different data in an author.php profile template depending on the role of the profile displayed? (NOT of the person viewing it, but the author that particular profile ...
-1
votes
1answer
64 views

Customise Author Page?

On my website I would enjoy to make it so that if a reader clicks an author or user's name it takes them to a page displaying their profile picture and bio. All users on my blog have the option to add ...
0
votes
1answer
213 views

Create template “author” with a plugin

I'm creating a plugin to modify the user profile into wp panel. I'd like to add an author template with the same plugin. I don't know if there is the file author.php into directory of theme. So I'd ...
0
votes
1answer
75 views

How to Modify Author Page for all Users?

I am going to create a user profile page for all users in my blog. I thought, it is better to modify the author page for all users. <?php if(is_author()) { echo get_avatar( get_the_author_meta( '...
1
vote
1answer
457 views

Loop starts from the beginning with second while loop on author.php

I am using the same template for author.php and home/blog.php. I have a loop split into 3 parts. <?php if(have_posts()): the_post; //do a thing endif: $i = 0; while(have_posts()): the_post(); ...
0
votes
1answer
440 views

How to set back query var author_name after unset it?

I am unsetting the query var author_name for querying posts in the author template page. I am using pre_get_posts to filter the main query. After the query is run, I need to set back the author_name ...
1
vote
1answer
506 views

pre_get_posts Tax Query not working for custom author page

I am using the theme TwentyTwelve and modified the standard post query in the file author.php with the following code: function wpd_author_query( $query ) { //CODE to set $current_user_name here //...
1
vote
0answers
227 views

Comments on Author page

Update: Ok,the DEBUG log says: PHP Notice: Undefined offset: 0 in /home/content/00/8437600/html/test/wp-includes/query.php on line 3105 PHP Notice: Trying to get property of non-object in /home/...
0
votes
2answers
213 views

Is author.php a core file?

I want to change the author.php with more information. Can i edit author.php without it remove my code, after a Wordpress update? Or is there some hook for this.
0
votes
2answers
76 views

Creating distinct pages for author profiles and lists of posts by author

The site I'm currently working on includes profile pages for each author plus a method to search for posts by a specific author. So we would have a page at /author/author-name/ that only displays a ...
0
votes
1answer
842 views

Only display link to author social media when it exists [closed]

I've added the following code to my functions.php to expand the functionality of the user profile page and be able to add links to the social media of the authors. function my_new_contactmethods( $...
0
votes
1answer
116 views

Hide page header on both index and author pages [closed]

I'm using the Roots theme which is tricky to start with. I'm trying to hide the page headers from both index and author pages. I got to do it on index by using the following code: <?php if(!...
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
114 views

Get $curauth level

I am trying to get the user level of the author that is displayed on an author page (not the current user that is logged in, but the user that is presented on the current author page that I am viewing)...
0
votes
1answer
419 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
0answers
61 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
2answers
470 views

Use different template than author.php for get_author_posts_url()

I have a client that wants two pages for each author profile: First Page - has user info, bunch of social media links, etc. Using author.php for this. Second Page - list of author posts I've built ...
0
votes
0answers
86 views

Rewrite author_name

I need to rewrite author_name to cat. I searched for hours but can't find anything. I restrict the search results by author instead category because of the performance, it's much faster. For getting ...