Site logo

Archived topic

Author Page > Nothing Found

15 replies · Started by Py on February 11, 2023

Viewing posts 1–15 of 16

The author page url domainname.com/author/username/ returns Nothing Found.

Should I enable some setting first?

Can the Author page be built with Elements?

I have both GeneratePress Pro and GenerateBlocks Pro

I want the author page to look exactly like this page I have built for blog posts feed: https://passivebook.com/articles/ with an author box on top and the posts filtered for the respective author.

Hi there,

does the author whose archive you're looking for have any Posts Published ?

I don't use posts in WordPress. I only use pages. How do I display the pages published by the author and exclude some pages based on taxonomy?

Try this PHP Snippet:

function author_pages_pre_get_posts( $query ) {
    if ( $query->is_author() && $query->is_main_query() ) {
        $query->set( 'post_type', array( 'page', 'post' ) );
        $query->set( 'category__not_in', array( 20, 30, 40 ) );
    }
}
add_action( 'pre_get_posts', 'author_pages_pre_get_posts' );

Change the IDs in the array( 20, 30, 40 ) to match the categories you want to exclude.

Have you disabled the author archive link in your SEO plugin?

The author archive link has been redirected to the homepage.

You were right. Thank you

Can I customize my page with Generate Blocks? Basically, I want to make my Author Page look like this: https://passivebook.com/articles/

I have added Social Media Links to the Author Profile using the code here: https://wpknifer.com/add-social-media-links-to-the-author-profile/

I want to display it on the author archives page.

I am using Buttons with Author Meta as shown below:
[img]https://i.imgur.com/cs7JaY1.png[/img]

How do I ensure the button is not displayed if there is no link in the author bio?

Also how do I make the image rounded? I am using Dynamic Image from GenerateBlocks
Here is how it looks now:
[img]https://i.imgur.com/dTvVU6E.png[/img]

Here is how I want it to look
[img]https://i.imgur.com/Oa2I8Bk.png[/img]

Hey David,

How coukd this snippet be altered in the array line to exclude all, or is it a must to list individually?

Hi Py,

if there is no link in the custom field then the button should automatically be removed.

for your second issue, select the Image Block, an increase its Spacing > Border radius to a much larger value on all sides.

Hi Scott,

could raise a new topic?

Change that Block for a GenerateBlocks Image Block, there you have the GB Spacing Settings and its own Dynamic Data options

Hi Py,

Did you add this code?:

img {
                height: auto;
                max-width: 100%;
                border-radius: 8px!important;
            }

It's overriding the border-radius setting you have.

Try removing it from Appearance > Customize > Additional CSS.

This archived topic is closed to new replies.