• Resolved ginpan

    (@ginpan)


    I’ve added a function to my custom.php file that allows the author biography box to be displayed on top of the author archive page with all the author’s posts following it.

    My question is, how can I get rid of the “More Posts” link on this author box as all posts are already listed below on the author archive page and it’s not needed here and might cause confusion.

    I see that in the Content tab you can choose to not display “More Posts” but if I check that then it’s not displayed on any of my posts. I’ve had a look at your Filter Support page but can’t find anything that pertains to this.

    https://www.ads-software.com/extend/plugins/wp-biographia/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author vicchi

    (@vicchi)

    This is an interesting one; there’s nothing in the plugin’s code that does this at the moment.

    I think you could do something along the lines of writing a filter hook for the wp_biographia_link_item filter. Check whether you’re on an author archive page, via is_archive() and is_author() and then check whether either the URL of the link or the link body text is the “More Posts” link and return an empty link.

    I haven’t tested this but it should be enough to get you started.

    In the longer term, I can see the need for a filter that’s called which allows you to specify which components of the Biography Box should be displayed, thus allowing you to omit a specific link or, say, the biography text, under certain circumstances.

    -Gary

    Thread Starter ginpan

    (@ginpan)

    Thank you for your suggestion. My programming capabilities are really quite limited if nonexistent. I’ve been thinking about it a bit more and have found another workaround.

    In the Content tab I’ve checked to not display the “More Posts” link. Then in the User’s Profile under Bio Excerpt I’ve inserted a link to the author’s archive page.

    This way “More Posts” only shows on my posts and not the author archive page.

    Plugin Author vicchi

    (@vicchi)

    That’s a nice work-around. Feel free to get in touch if you need any more help.

    -Gary

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Remove "More Posts" from Author Archive Page’ is closed to new replies.