Edit author page / link author image to different page

Posted in: Newspaper
Post count: 91

First of all: Great theme!

But… How do I edit the author page? I have multiple contributors and I want to edit their author page so that they have their separate sidebars etc. In other words….:

1. How do I edit the author page?

2. If that doesn’t work: How do I make author images (in a post, in a sidebar etc) link to pages of my choosing?

Are

Post count: 854

hi,
http://screencast.com/t/eRsYpEUj
go to Theme panel -> Tempalte settings -> Author display view. there you choose on what side the sidebar will be , create a custom sidebar.

after you create your custom sidebar go to Appearance -> Widgets , find your sidebar there and drag the widgets that you want on the sidebar.

Thanks for you message.
Radu A.

Post count: 91

Yes, but that would give all the authors the same sidebar?

I want to customize author A’s page, author B’s page etc. How do I link the author image — the image connected to the author of a post — to a page of my choosing?

Post count: 3343

Hi,
The theme doesn’t support custom sidebar for each author, only if you implement something in author.php file where is the sidebar, you have to put a condition for each author to get a custom sidebar.

That link is something from internal WP, you can’t change it, i presume that you want to make custom pages for each author and link it from the picture.

Post count: 91

Yes, ideally, the author image would link to a custom page. There must be an easy way to redirect/fix this…?

Post count: 3343

Hi,
I found this, add it in function.php

add_filter( 'author_link', 'my_multi_author_link', 10, 2 );

function my_multi_author_link( $url, $user_id ) {
    if ( 1 == $user_id ) {
        return home_url( 'contact' );
    }
    if ( 2 == $user_id ) {
        return home_url( 'homepage-2' );
    }
    return $url;
}

Change the ID for each author and page you want to redirect. In my case author with ID 1 will go to contact page, write there the slug of the page you want to redirect.

Post count: 91

Thank you Marius!

Post count: 91

Adding this code in functions.php:

add_filter( ‘author_link’, ‘my_multi_author_link’, 10, 2 );

function my_multi_author_link( $url, $user_id ) {
if ( 1 == $user_id ) {
return home_url( ‘flaten’ );
}
return $url;
}

…messes everything up and gives med the following warning/fatal error:
( ! ) Warning: require_once(includes/td_wordpres_booster.php): failed to open stream: No such file or directory in /Users/areflaten/Documents/Websites/www.amerikanskpolitikk.dev/wp-content/themes/Newspaper-child/functions.php on line 16

( ! ) Fatal error: require_once(): Failed opening required ‘includes/td_wordpres_booster.php’ (include_path=’.:/Applications/XAMPP/xamppfiles/lib/php’) in /Users/areflaten/Documents/Websites/www.amerikanskpolitikk.dev/wp-content/themes/Newspaper-child/functions.php on line 16

Post count: 3343

Hi,
I’m not sure what you have there, see here: http://screencast.com/t/vmUOwGOYb

for me works, no warning, error: http://screencast.com/t/rh8djXHpBv0f

Can you try to add the code directly in Theme root and not in Child theme.

Thanks!

Post count: 91

Awesome. Thanks a lot!

Post count: 18

I also need to implement each author image to link to their own custom author page.

I’ve added the code to the functions.php page as directed. Could please provide more detail on this part… “Change the ID for each author and page you want to redirect. In my case author with ID 1 will go to contact page, write there the slug of the page you want to redirect.”

I would really appreciate adding this functionality. In order to use this theme I have to be ability to have each author’s page include a few different/additional elements.

Thank you again for your great support!

Post count: 3343

Hi,

@caltex
use the above function, is exactly what you need. There are some conditions that you can put it for each author, if author 1 go to that page and the home_url is the page slug.

Add that code in function.php file.
Hope this help!

We can’t add this only for 1 users, if more people require this we will thing about it :), Each one have a request, think what will happen if we include all featured requested, will be a mess. What is good for you, can not be so good for others.

Thanks for the message and for the feedback!

Post count: 18

Where can do I find out what an author’s ID number is? I can’t seem to find it?

Post count: 18

Thank you I really appreciate your help. I found out how to locate the author ID numbers. And was able to redirect the author to their new page. Now I just one last important element… How can I have the author’s past posts display on the new page?

Thank you, you guys are great!

Post count: 18

I have been able to add the author’s posts to the authors new custom page. I just have 2, hopefully small issues, that I would love to solve.

Gap Element Spacing: As a reference, here are the elements on the page with VC:
link below
https://www.dropbox.com/s/y0zk2qe6or6uwjy/Author%20Page%20in%20VC.png

Here is a screen grab of the page, how can I decrease the Gap/spacing between the 3 elements? link below
https://www.dropbox.com/s/mbyiqbs34puk9jp/author%20block%20spacing.png

User Setting: To select the author’s posts in Block 6 in VC, using the Author’s filter, I only had access to “Lenny da Vinci’s” ID after changing his role from Author to Administrator: links below

Before
https://www.dropbox.com/s/14wrp3o1efpge18/Authors%20Filter%20in%20Block%206.png

Change to
https://www.dropbox.com/s/icat19obnjayhf2/Lenny%20admin.png

After
https://www.dropbox.com/s/y9zc4u44gtn3snb/after%20user%20change.png

If we could find solutions to both of these issues that would be great.
Thank you again for all your help. I really appreciate it!

Viewing 15 posts - 1 through 15 (of 15 total)
The forum ‘Newspaper’ is closed to new topics and replies.