Site logo

[Support request] Author Page > Nothing Found

Home Forums Support [Support request] Author Page > Nothing Found

Home Forums Support Author Page > Nothing Found

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #2529862
    Py

    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.

    #2530197
    David
    Staff
    Customer Support

    Hi there,

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

    #2531409
    Py

    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?

    #2531898
    David
    Staff
    Customer Support

    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.

    #2534586
    Py

    Hi David

    I added the code you shared in the snippet plugin but the author page still says Nothing Found

    Please check this post: https://passivebook.com/blogging/start-a-blog/history/

    The author link is here: https://passivebook.com/author/abhishek/ (Also available in the meta below the title)

    #2534604
    Ying
    Staff
    Customer Support

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

    The author archive link has been redirected to the homepage.

    #2535789
    Py

    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/

    #2535835
    David
    Staff
    Customer Support

    You can create a new Block Element – Loop Template and set it to your Author Archives:

    https://docs.generatepress.com/article/block-element-loop-template/

    You can then add whatever content you want, and for the post loop you can use a Query Loop Block, with the option “Inherit Query from Template” selected.

    #2538168
    Py

    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]

    #2538296
    Scott

    Hey David,

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

    #2538539
    David
    Staff
    Customer Support

    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?

    #2538689
    Py

    Hi David,

    I don’t see the spacing border option in the Dynamic Image option

    Please see screenshot below:
    2023-02-19_19-11-54

    #2538920
    David
    Staff
    Customer Support

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

    #2538974
    Py

    I have done this change but the image still doesnt get rounded.

    Here is the setting: https://www.screencast.com/t/x4P0Mwjy0g

    Here is out it looks: https://passivebook.com/author/abhishek/

    #2539187
    Fernando
    Customer Support

    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.

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.