Questions tagged [author-template]

The tag has no usage guidance.

2
votes
1answer
596 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 ...
1
vote
1answer
85 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()); ...
1
vote
1answer
901 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 ...
1
vote
1answer
52 views

Post list based on the page author

I'm sorry if this question is already been done, but I couldn't solve my problem after reading similar questions. I would like to have customized author pages, in which each author can write text and ...
0
votes
1answer
32 views

Return author name as a tag using get_author

I'm trying to display the author name as a tag. I looked at many forums and it's referring to the get_author methods and the PHP files from the template PHP. However, I do not know what changes to ...
0
votes
1answer
22 views

Change author base and slug in author link

Hello im trying to change the author link from mysite/author/username to mysite/companies/dataFromUserMetabox i tried the approach from this answer chage author url its working the url changed but ...
0
votes
1answer
197 views

Showing the authors username and bio on custom author.php

I have this code I'm using to create a custom author.php, which is working great to show that users posts and it's children etc: <?php get_header(); ?> <?php $curauth = (isset($_GET['...
0
votes
1answer
86 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
30 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
127 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( '...
0
votes
1answer
354 views

Author template - separate custom post type by custom taxonomy term for $curauth

Basically I have a post type called photograph, I then have a Taxonomy group called "Subject" and several tax terms i.e. Abstract, freeze frame etc (Approx 18 in total) under that Taxonomy group. I ...
0
votes
1answer
335 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
1answer
96 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
1answer
98 views

Author.php not displaying post type posts

I note that the twentyeleven theme author.php template only display the posts from normal posts, the custom post type posts are not display in this template. How do I query all the posts from the ...
-1
votes
1answer
119 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 ...
2
votes
0answers
39 views

Get data from plugin People list in author template

I use Theme Mystique for my site, and the plugin People list. I have created several new fields for the profiles of authors in the plugin. Now I want to get these fields in the authors template. How ...
1
vote
0answers
21 views

create a new page from a custom post type similar to an authors page

I am looking for some direction here as I am unsure where to start. I have a CPT called 'videos' and one of my inputs is a 'artist_bio' text box that creates a box with a biography in it on my page. ...
1
vote
0answers
37 views

Create Next and Previous Link to User orderby Last Name

Within author.php, I have a left and right arrow that is supposed to move to the NEXT or PREVIOUS user orderby based on last_name. So if I had users with these names: Julie Brown Jane Cook John Doe ...
1
vote
0answers
39 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. ...
1
vote
0answers
327 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
0answers
122 views

Cant get unique_array() work on get_the_category() foreach loop

i'm trying to list user's posted categories (main ones only) on the author.php I have prepared this loop but it has duplicated content <?php if ( have_posts() ) : while ( have_posts() ) : ...